AFAttribute.IsSupportedDataMethod Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Tests if the attribute supports the specified set of AFDataMethods.
The result of this method is consistent with the SupportedDataMethods property,
but this method allows omission of testing unnecessary modes.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public bool IsSupportedDataMethod( AFDataMethods dataMethods )
Public Function IsSupportedDataMethod ( dataMethods As AFDataMethods ) As Boolean Dim instance As AFAttribute Dim dataMethods As AFDataMethods Dim returnValue As Boolean returnValue = instance.IsSupportedDataMethod(dataMethods)
public: bool IsSupportedDataMethod( AFDataMethods dataMethods )
member IsSupportedDataMethod : dataMethods : AFDataMethods -> bool
Parameters
- dataMethods
- Type: OSIsoft.AF.DataAFDataMethods
The set of AFDataMethods that should be tested.
Return Value
Type: Booleanif all specified modes are supported by the attribute.