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
name
stringThe name of the property.
type
PropertyTypeSpecifies the property type.
isFilterEnabled
boolSpecifies if the filter is enabled.
isReadOnly
boolSpecifies if the property is read-only.
isVisibleInSurveyor
boolSpecifies 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
name
is null.- ArgumentException
name
is the empty string ("") or white space.- ArgumentException
type
is invalid.