OSIsoft.AF.Asset Namespace
- Last UpdatedNov 18, 2025
- 8 minute read
- PI System
- AF SDK 2024 R2
- Developer
The OSIsoft.AF.Asset namespace provides a set of classes for representing the assets within an organization. It allows the creation of a hierarchies of assets and their attributes. Additionally, it provides features for dealing with common requirements such as remote data access, unit-of-measure conversion, and defining and enforcement of asset definition.
Each PISystem is composed of any number of isolated databases.
Classes
| Class | Description | |
|---|---|---|
| AFAttribute |
The AFAttribute represents a single value that is used to represent a specific
piece of information that is part of an AFBaseElement.
An AFAttribute may also include child attributes.
| |
| AFAttributeList |
A collection of AFAttribute objects. This collection can be
a user created collection of attributes which belong to different objects.
| |
| AFAttributes |
A collection of AFAttribute objects. This may be the
collection of attributes maintained by an AFBaseElement or
by another AFAttribute.
| |
| AFAttributeTemplate |
The AFAttributeTemplate provides the definition used to create
an AFAttribute.
| |
| AFAttributeTemplates |
A collection of AFAttributeTemplate objects. This may be the
collection of attribute templates maintained by an AFElementTemplate or
by another AFAttributeTemplate.
| |
| AFAttributeTrait |
A trait can be used to define and/or find related AFAttribute objects with
well-known behaviors and relationships.
| |
| AFBaseElement |
The AFBaseElement is a logical grouping of attributes associated with
an element, model, transfer, or similar objects.
| |
| AFBaseElements |
The collection of AFBaseElement objects.
| |
| AFDataReference |
The AFDataReference is used by an AFAttribute and
AFAttributeTemplate to define the information necessary
and implement the mechanism used to read, calculate, and write a
value (or series of values), given the specified context.
| |
| AFDataReferenceUsesInternalAFValueAttribute |
Attribute used on an AFDataReference to indicate that it uses
the SetInternalAFValue method for storing values.
| |
| AFElement |
The AFElement is a logical grouping of attributes and child elements.
| |
| AFElements |
The collection of AFElement objects.
| |
| AFElementTemplate |
The AFElementTemplate represents a template of information
used to create an AFBaseElement. Several types of objects
are elements, including an AFElement, AFEventFrame,
or AFModel.
| |
| AFElementTemplates |
The collection of AFElementTemplate objects.
| |
| AFEnumerationSet |
The AFEnumerationSet represents a user-defined set of named constant values.
It is also used to represent a PI Digital State Set.
| |
| AFEnumerationSets |
The collection of AFEnumerationSet objects is maintained
by the AFDatabase.
| |
| AFEnumerationValue |
The AFEnumerationValue represents a specific condition of an enumerated set
It is similar to a PI Digital State.
| |
| AFEnumerationValues |
The AFEnumerationValues is a collection of enumeration values.
| |
| AFFile | AFFile is used to represent a file object.
| |
| AFReferenceType |
An AFReferenceType specifies a relationship type
to use when making a hierarchical relationship between two elements.
| |
| AFReferenceTypes |
The collection of AFReferenceType objects.
| |
| AFTable |
The table object allows access to traditional relational database data
through ADO.NET Data Tables.
| |
| AFTableConnection |
The table object allows access to traditional relational database data
through ADO.NET Table Connections.
| |
| AFTableConnections |
The AFTableConnection collection allows you to define and/or
access connection information for database tables.
| |
| AFTables |
The AFTable collection allows you to define and/or
access information in database tables.
| |
| AFValue |
The AFValue object is used to represent the value of an
AFAttribute along with a timestamp, status, and unit of measure.
| |
| AFValues |
This collection holds the values returned from
a call to one of the AFAttribute.GetValues Overload,
AFAttributes.GetValue Overload,
or AFAttributeList.GetValue Overload
methods.
| |
| AFVersion |
The AFVersion object returns information about a specific
version of an ASDK object.
|
Structures
| Structure | Description | |
|---|---|---|
| AFAttributeValueQuery |
Attribute value search query structure.
| |
| AFAttributeValueQueryID |
Attribute value search by ID query structure.
|
Interfaces
| Interface | Description | |
|---|---|---|
| IAFAttribute |
Common interface for properties and methods of AFAttributeTemplate
and AFAttribute.
| |
| IAFVersionable |
This interface defines the properties and methods for objects which support being versioned.
|
Delegates
| Delegate | Description | |
|---|---|---|
| AFDataReferenceSaveConfigChangesHandler |
A handler to save configuration changes.
|
Enumerations
| Enumeration | Description | |
|---|---|---|
| AFDataReferenceContext |
The AFDataReferenceContext is an enumeration of the possible contexts supported
for by data reference. It is returned by the
AFDataReference.SupportedContexts
property.
| |
| AFDataReferenceMethod |
The AFDataReferenceMethod is an enumeration of the possible methods which a
data reference supports. It is returned by the
AFDataReference.SupportedMethods property.
| |
| AFElementType |
This is an enumeration that defines the possible values used when
you specify the type of an element.
| |
| AFHealthStatus |
This enumeration defines the values for the Health StatusAFEnumerationSet.
| |
| AFQueryMode |
The query mode is an enumeration of the possible values for specifying the
query criteria.
| |
| AFReferenceStrength |
This is an enumeration that defines the possible values used when
specifying the strength of an AFReferenceType.
| |
| AFSearchMode |
The search mode is an enumeration of the possible values for specifying the
search criteria.
| |
| AFSystemStateCode |
This enumeration defines the values for the standard system enumeration set
derived from the system digital code values in the PI Data Archive.
| |
| AFValueStatus |
This is an enumeration that defines the possible AFValue indicators when
you retrieve the value of an AFAttribute.
|
In This Topic
Related Links
- AFAttribute Class
- AFAttributeList Class
- AFAttributes Class
- AFAttributeTemplate Class
- AFAttributeTemplates Class
- AFAttributeTrait Class
- AFAttributeValueQuery Structure
- AFAttributeValueQueryID Structure
- AFBaseElement Class
- AFBaseElements Class
- AFDataReference Class
- AFDataReference.SaveConfigChangesHandler Delegate
- AFDataReference.UsesInternalAFValueAttribute Class
- AFDataReferenceContext Enumeration
- AFDataReferenceMethod Enumeration
- AFElement Class
- AFElements Class
- AFElementTemplate Class
- AFElementTemplates Class
- AFElementType Enumeration
- AFEnumerationSet Class
- AFEnumerationSets Class
- AFEnumerationValue Class
- AFEnumerationValues Class
- AFFile Class
- AFHealthStatus Enumeration
- AFQueryMode Enumeration
- AFReferenceStrength Enumeration
- AFReferenceType Class
- AFReferenceTypes Class
- AFSearchMode Enumeration
- AFSystemStateCode Enumeration
- AFTable Class
- AFTableConnection Class
- AFTableConnections Class
- AFTables Class
- AFValue Class
- AFValues Class
- AFValueStatus Enumeration
- AFVersion Class
- IAFAttribute Interface
- IAFVersionable Interface