Table of Contents

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 string

The name of the property.

type PropertyType

Specifies the property type.

isFilterEnabled bool

Specifies if the filter is enabled.

isReadOnly bool

Specifies if the property is read-only.

isVisibleInSurveyor bool

Specifies 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.