Method CreateProperty
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
CreateProperty(string, PropertyType, bool, bool, bool)
Creates a property with the specified configuration.
int CreateProperty(string name, PropertyType type, bool isFilterEnabled, bool isReadOnly, bool isVisibleInSurveyor)
Parameters
namestringThe name of the property.
typePropertyTypeSpecifies the property type.
isFilterEnabledboolSpecifies if the filter is enabled.
isReadOnlyboolSpecifies if the property is read-only.
isVisibleInSurveyorboolSpecifies if the property is visible in the surveyor.
Returns
- int
The ID of the created property. If it fails to create property -1 is returned.
Exceptions
- ArgumentNullException
nameis null.- ArgumentException
nameis the empty string ("") or white space.- ArgumentException
typeis invalid.