AFAttribute Methods
- Last UpdatedNov 18, 2025
- 10 minute read
- PI System
- AF SDK 2024 R2
- Developer
The AFAttribute type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| CompareTo(Object) |
Compares this instance with a specified Object.
(Inherited from AFObject.) | |
| CompareTo(AFObject) |
Compares this instance with a specified AFObject.
(Inherited from AFObject.) | |
| Equals(Object) |
Determines whether the specified Object is equal to the current object.
(Inherited from AFObject.) | |
| Equals(AFObject) |
Indicates whether the current object is equal to another object of the same type.
(Inherited from AFObject.) | |
| FindAttribute(String, AFObject) |
Retrieves the AFAttribute object identified by the path string relative to
the specified object.
| |
| FindAttribute(AFBaseElement, AFAttributeTemplate) |
Retrieves the AFAttribute object created from the specified
AFAttributeTemplate.
| |
| FindAttribute(AFBaseElement, Guid) |
Retrieves the AFAttribute with the specified unique identifier.
| |
| FindAttributes |
Finds a list of AFAttribute objects identified by the path, relative from the specified object.
| |
| FindAttributesByPath(IEnumerableString, AFObject) |
Retrieves the AFAttribute objects identified by the path strings as keyed results.
| |
| FindAttributesByPath(IEnumerableString, AFObject, IDictionaryString, String) |
Retrieves the AFAttribute objects identified by the path strings as a list.
| |
| FindCaseAttributes(AFAnalysis, AFSearchMode, Object, Object, String, AFCategory, AFElementTemplate, String, AFCategory, TypeCode, AFSortField, AFSortOrder, Int32) |
Retrieves a non-paged collection of AFCaseAFAttribute
objects matching the specified filters.
| |
| FindCaseAttributes(AFAnalysis, AFSearchMode, Object, Object, String, String, AFCategory, AFElementTemplate, String, String, AFCategory, TypeCode, AFSortField, AFSortOrder, Int32) |
Retrieves a non-paged collection of AFCaseAFAttribute
objects matching the specified filters.
| |
| FindElementAttributes(AFDatabase, AFElement, String, AFCategory, AFElementTemplate, AFElementType, String, AFCategory, TypeCode, Boolean, AFSortField, AFSortOrder, Int32) |
Retrieves a non-paged collection of AFElementAFAttribute
objects matching the specified filters.
| |
| FindElementAttributes(AFDatabase, AFElement, String, AFCategory, AFElementTemplate, AFElementType, String, AFCategory, TypeCode, Boolean, AFSortField, AFSortOrder, Int32, Int32, Int32) |
Retrieves a paged collection of AFElementAFAttribute objects
matching the specified filters.
| |
| FindElementAttributes(AFDatabase, AFElement, String, String, AFCategory, AFElementTemplate, AFElementType, String, String, AFCategory, TypeCode, Boolean, AFSortField, AFSortOrder, Int32) |
Retrieves a non-paged collection of AFElementAFAttribute
objects matching the specified filters.
| |
| FindElementAttributes(AFDatabase, AFElement, String, String, AFCategory, AFElementTemplate, AFElementType, String, String, AFCategory, TypeCode, Boolean, AFSortField, AFSortOrder, Int32, Int32, Int32) |
Retrieves a paged collection of AFElementAFAttribute objects
matching the specified filters.
| |
| FindEventFrameAttributes(AFDatabase, AFSearchMode, Object, Object, AFEventFrame, String, String, AFCategory, AFElementTemplate, AFDurationQuery, String, AFCategory, TypeCode, Boolean, AFSortField, AFSortOrder, Int32, Int32) |
Retrieves a paged collection of AFEventFrameAFAttribute objects
matching the specified filters.
| |
| FindEventFrameAttributes(AFDatabase, AFSearchMode, Object, Object, AFEventFrame, String, String, String, AFCategory, AFElementTemplate, AFDurationQuery, String, String, AFCategory, TypeCode, Boolean, AFSortField, AFSortOrder, Int32, Int32) |
Retrieves a paged collection of AFEventFrameAFAttribute objects
matching the specified filters.
| |
| FindNotificationAttributes(AFDatabase, String, AFCategory, AFElementTemplate, String, AFCategory, TypeCode, AFSortField, AFSortOrder, Int32) |
Retrieves a non-paged collection of AFNotificationAFAttribute
objects matching the specified filters.
| |
| FindNotificationAttributes(AFDatabase, String, String, AFCategory, AFElementTemplate, String, String, AFCategory, TypeCode, AFSortField, AFSortOrder, Int32) |
Retrieves a non-paged collection of AFNotificationAFAttribute
objects matching the specified filters.
| |
| FindTransferAttributes(AFDatabase, AFSearchMode, Object, Object, String, AFBaseElement, AFBaseElement, AFCategory, AFElementTemplate, String, AFCategory, TypeCode, AFSortField, AFSortOrder, Int32) |
Retrieves a non-paged collection of AFTransferAFAttribute objects
matching the specified filters.
| |
| FindTransferAttributes(AFDatabase, AFSearchMode, Object, Object, String, String, AFBaseElement, AFBaseElement, AFCategory, AFElementTemplate, String, String, AFCategory, TypeCode, AFSortField, AFSortOrder, Int32) |
Retrieves a non-paged collection of AFTransferAFAttribute objects
matching the specified filters.
| |
| GetAttributeByTrait |
Retrieves the child AFAttribute with the specified AFAttributeTrait.
| |
| GetAttributesByTrait |
Retrieves a list of child AFAttribute objects identified by the specified list of attribute traits.
| |
| 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.
(Inherited from AFObject.) | |
| GetPath |
Returns the full path to the object, using just the names.
(Inherited from AFObject.) | |
| GetPath(AFObject) |
Returns the path to the object relative from another object.
(Inherited from AFObject.) | |
| GetPath(AFEncodeType, AFObject) |
Returns the path to the object relative from another object,
using the name and/or id as specified
by encodeType.
(Inherited from AFObject.) | |
| GetPaths |
Get all the relative paths to this AFAttribute.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetValue |
This method gets the value for an attribute based upon the data reference configuration
in the units of the DefaultUOM for the attribute.
| |
| GetValue(AFCase) |
This method gets the value for an attribute based upon the data reference configuration
and the specified AFCase context in the units of the
DefaultUOM for the attribute.
| |
| GetValue(AFTime) |
This method gets the value for an attribute based upon the data reference configuration
and the specified AFTime context in the units of the
DefaultUOM for the attribute.
| |
| GetValue(AFTimeRange) |
This method gets the value for an attribute based upon the data reference configuration
and the specified AFTimeRange context in the units of the
DefaultUOM for the attribute.
| |
| GetValue(UOM) |
This method gets the value for an attribute based upon the data reference configuration
in the specified units-of-measure.
| |
| GetValue(AFCase, UOM) |
This method gets the value for an attribute based upon the data reference configuration
and the specified AFCase context in the specified units-of-measure.
| |
| GetValue(AFTime, UOM) |
This method gets the value for an attribute based upon the data reference configuration
and the specified AFTime context in the specified units-of-measure.
| |
| GetValue(AFTimeRange, UOM) |
This method gets the value for an attribute based upon the data reference configuration
and the specified AFTimeRange context in the specified units-of-measure.
| |
| GetValue(Object, Object, UOM) | Obsolete.
This method gets the value for an attribute based upon the data reference configuration
and the specified AFCase context in the specified units-of-measure.
| |
| GetValues(AFAnalysis, IListAFCase, UOM) |
This method gets a collection of AFValue objects for an attribute
in each of the cases.
| |
| GetValues(AFTimeRange, Int32, UOM) |
This method gets a collection of AFValue objects for an attribute based upon
the data reference configuration within the specified AFTimeRange context.
| |
| GetValues(Object, AFTimeRange, Int32, UOM) | Obsolete.
This method gets a collection of AFValue objects for an attribute based upon
the data reference configuration within the specified AFTimeRange context.
| |
| IsSupportedDataMethod |
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.
| |
| Persist |
This method returns the persistence string for the object.
(Overrides AFObjectPersist.) | |
| RawPIPointPath |
Returns the path to the PIPoint that the attribute represents.
| |
| ResetToTemplate |
This method will reset the AFAttribute back to its template default values.
| |
| SetConfigStrings |
Set the ConfigString values for the specified list of attributes.
| |
| SetValue(AFValue) |
This method sets the value for an attribute based upon the data reference configuration
using the specified AFValue object.
| |
| SetValue(Object, UOM) |
This method sets the value for an attribute based upon the data reference configuration
with a default timestamp and the specified unit-of-measure.
| |
| SetValue(AFCase, AFValue) |
This method sets the value for an attribute into the result set of the specified
caseContext using the specified AFValue object.
Values written into the case can be subsequently output to associated data references by invoking
AFCase.Publish method.
| |
| SetValue(Object, Object, UOM) | Obsolete.
This method sets the value for an attribute based upon the data reference configuration
with a default timestamp and the specified unit-of-measure.
| |
| SetValue(AFCase, AFValue, UOM) | Obsolete.
This method sets the value for an attribute based into the result set of the specified
AFCase context using the specified AFValue object.
Values written into the case can be subsequently output to associated data references by invoking
AFCase.Publish method.
| |
| SetValue(AFCase, Object, UOM) |
This method sets the value for an attribute into the result set of the specified
caseContext with a default timestamp and the specified unit-of-measure.
Values written into the case can be subsequently output to associated data references by invoking
AFCase.Publish method.
| |
| ToString |
Returns a String that represents the current object.
(Inherited from AFObject.) |
See Also
In This Topic
Related Links
- FindAttribute Method
- FindAttributes Method
- FindAttributesByPath Method
- FindCaseAttributes Method
- FindElementAttributes Method
- FindEventFrameAttributes Method
- FindNotificationAttributes Method
- FindTransferAttributes Method
- GetAttributeByTrait Method
- GetAttributesByTrait Method
- GetPaths Method
- GetValue Method
- GetValues Method
- IsSupportedDataMethod Method
- Persist Method
- RawPIPointPath Method
- ResetToTemplate Method
- SetConfigStrings Method
- SetValue Method