AFValue Methods
- Last UpdatedNov 18, 2025
- 6 minute read
- PI System
- AF SDK 2024 R2
- Developer
The AFValue type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| CompareTo(Object) |
Compares this instance with a specified Object.
| |
| CompareTo(AFValue) |
Compares this instance with a specified AFValue.
| |
| Convert(UOM) | ||
| Convert(UOMGroup) | ||
| ConvertForAttribute |
Converts the current value using the type and units of measure configured for the specified attribute.
| |
| Create(AFAttribute, Double, AFTime, UOM, AFValueStatus, Object) | ||
| Create(AFAttribute, Int32, AFTime, UOM, AFValueStatus, Object) | ||
| Create(AFAttribute, Single, AFTime, UOM, AFValueStatus, Object) | ||
| CreateSystemNoDataFound |
This method will create an AFValue object with a system state of NoData as its AFEnumerationValue
with a Bad status that is associated with an AFAttribute.
| |
| CreateSystemStateValue(AFSystemStateCode, AFTime) |
This method will create an AFValue object with a system AFEnumerationValue
as its value with a Bad status that is not associated with an AFAttribute.
| |
| CreateSystemStateValue(AFAttribute, AFSystemStateCode, AFTime) |
This method will create an AFValue object with a system AFEnumerationValue
as its value with a Bad status that is associated with an AFAttribute.
| |
| DefaultValue |
Gets the default value for the specified type.
| |
| DisplayValue(Decimal, Int32, IFormatProvider) |
Displays the Decimal value based upon the specified number of display digits.
| |
| DisplayValue(Double, Int32, IFormatProvider) |
Displays the Double value based upon the specified number of display digits.
| |
| DisplayValue(Int32, IFormatProvider, Boolean) | ||
| DisplayValue(Object, Int32, IFormatProvider) |
Displays the Object value based upon the specified number of display digits.
| |
| DisplayValue(Single, Int32, IFormatProvider) |
Displays the Single value based upon the specified number of display digits.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).) | |
| Equals(AFValue) |
Indicates whether the current object is equal to another object of the same type.
| |
| FromPIValue(Object) | Obsolete.
This method sets the value of this AFValue object from a
PISDK.PIValue object.
| |
| FromPIValue(Boolean, Object) | Obsolete.
This method sets the value of this AFValue object from a
PISDK.PIValue object.
| |
| FromPIValue(Object, Type, Object, AFEnumerationSet, UOM) | Obsolete.
This method sets the value of this AFValue object from a
PISDK.PIValue object, converting to the appropriate type as necessary.
| |
| GetAnnotation |
Gets the annotation associated with this AF value.
| |
| GetAnnotations |
Gets the annotation associated for each AF value in the specified list.
| |
| GetHashCode |
Gets the hash code for this instance of the object which is suitable for use in hashing
algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Persist |
This method returns the persistence string for the object.
| |
| SetAnnotation |
Associates an annotation with this AF value.
| |
| ToPIValue | Obsolete.
This method returns the value of this object as a new PISDK.PIValue object.
| |
| ToPIValue(Object) | Obsolete.
This method sets the value of the passed in PISDK.PIValue object to the
value of this AFValue object.
| |
| ToString |
Returns a String that represents the current object.
(Overrides ObjectToString.) | |
| ValueAsDouble |
Returns the value held by this AFValue as a Double.
The value will be converted if possible.
If the value cannot be converted an exception will be throw.
The value can be checked before performing the conversion using the Type or TypeCode property.
| |
| ValueAsInt32 |
Returns the value held by this AFValue as a Int32.
The value will be converted if possible.
If the value cannot be converted an exception will be throw.
The value can be checked before performing the conversion using the Type or TypeCode property.
| |
| ValueAsSingle |
Returns the value held by this AFValue as a Single.
The value will be converted if possible.
If the value cannot be converted an exception will be throw.
The value can be checked before performing the conversion using the Type or TypeCode property.
|
See Also
In This Topic
Related Links
- CompareTo Method
- Convert Method
- ConvertForAttribute Method
- Create Method
- CreateSystemNoDataFound Method
- CreateSystemStateValue Method
- DefaultValue Method
- DisplayValue Method
- Equals Method
- FromPIValue Method
- GetAnnotation Method
- GetAnnotations Method
- GetHashCode Method
- Persist Method
- SetAnnotation Method
- ToPIValue Method
- ToString Method
- ValueAsDouble Method
- ValueAsInt32 Method
- ValueAsSingle Method