AddPIDigitalStateSet.DigitalStates Property
- Last UpdatedDec 15, 2025
- 2 minute read
Digital states to apply to the new PI Digital State Set
The index of the state in the array of passed states is the integral representation of the state.
Run "Get-Help Add-PIDigitalStateSet -Examples" for further explanation.
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)
Syntax
[ParameterAttribute(Position = 1, Mandatory = true, HelpMessage = "PI digital states")] [ValidateNotNullOrEmptyAttribute] public string[] DigitalStates { get; set; }
<ParameterAttribute(Position := 1, Mandatory := true, HelpMessage := "PI digital states")> <ValidateNotNullOrEmptyAttribute> Public Property DigitalStates As String() Get Set Dim instance As AddPIDigitalStateSet Dim value As String() value = instance.DigitalStates instance.DigitalStates = value
public: [ParameterAttribute(Position = 1, Mandatory = true, HelpMessage = L"PI digital states")] [ValidateNotNullOrEmptyAttribute] property array<String^>^ DigitalStates { array<String^>^ get (); void set (array<String^>^ value); }
[<ParameterAttribute(Position = 1, Mandatory = true, HelpMessage = "PI digital states")>] [<ValidateNotNullOrEmptyAttribute>] member DigitalStates : string[] with get, set