SetPIDigitalStateSet.States Property
- Last UpdatedDec 15, 2025
- 2 minute read
Digital states to apply to the existing 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 State Set Name")] [ValidateNotNullOrEmptyAttribute] public string[] States { get; set; }
<ParameterAttribute(Position := 1, Mandatory := true, HelpMessage := "PI Digital State Set Name")> <ValidateNotNullOrEmptyAttribute> Public Property States As String() Get Set Dim instance As SetPIDigitalStateSet Dim value As String() value = instance.States instance.States = value
public: [ParameterAttribute(Position = 1, Mandatory = true, HelpMessage = L"PI Digital State Set Name")] [ValidateNotNullOrEmptyAttribute] property array<String^>^ States { array<String^>^ get (); void set (array<String^>^ value); }
[<ParameterAttribute(Position = 1, Mandatory = true, HelpMessage = "PI Digital State Set Name")>] [<ValidateNotNullOrEmptyAttribute>] member States : string[] with get, set