PIServer.Supports Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Checks if the specified PIServerFeature feature is supported by
the PIServer.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Supports( PIServerFeature feature )
Public Function Supports ( feature As PIServerFeature ) As Boolean Dim instance As PIServer Dim feature As PIServerFeature Dim returnValue As Boolean returnValue = instance.Supports(feature)
public: bool Supports( PIServerFeature feature )
member Supports : feature : PIServerFeature -> bool
Parameters
- feature
- Type: OSIsoft.AF.PIPIServerFeature
The feature to check if it is supported by the PIServer.
Return Value
Type: BooleanReturns if the server supports the specified feature.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The feature is a Negative value or Unspecified. |
| NotSupportedException | The feature value is a Positive value but not in the PIServerFeature enum. |
Remarks
The PIServerFeature that are supported by the PIServer are determined
by the version of the PI Data Archive and what the server reports that it supports.