Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

OSIsoft.AF.Asset Namespace

  • Last UpdatedNov 18, 2025
  • 8 minute read
OSIsoft.AF.Asset Namespace

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

  ClassDescription
Public classCode example
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.
Public classCode example
AFAttributeList
A collection of AFAttribute objects. This collection can be a user created collection of attributes which belong to different objects.
Public classCode example
AFAttributes
A collection of AFAttribute objects. This may be the collection of attributes maintained by an AFBaseElement or by another AFAttribute.
Public classCode example
AFAttributeTemplate
The AFAttributeTemplate provides the definition used to create an AFAttribute.
Public classCode example
AFAttributeTemplates
A collection of AFAttributeTemplate objects. This may be the collection of attribute templates maintained by an AFElementTemplate or by another AFAttributeTemplate.
Public class
AFAttributeTrait
A trait can be used to define and/or find related AFAttribute objects with well-known behaviors and relationships.
Public class
AFBaseElement
The AFBaseElement is a logical grouping of attributes associated with an element, model, transfer, or similar objects.
Public class
AFBaseElements
The collection of AFBaseElement objects.
Public classCode example
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.
Public class
AFDataReferenceUsesInternalAFValueAttribute
Attribute used on an AFDataReference to indicate that it uses the SetInternalAFValue method for storing values.
Public classCode example
AFElement
The AFElement is a logical grouping of attributes and child elements.
Public classCode example
AFElements
The collection of AFElement objects.
Public classCode example
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.
Public classCode example
AFElementTemplates
The collection of AFElementTemplate objects.
Public classCode example
AFEnumerationSet
The AFEnumerationSet represents a user-defined set of named constant values. It is also used to represent a PI Digital State Set.
Public classCode example
AFEnumerationSets
The collection of AFEnumerationSet objects is maintained by the AFDatabase.
Public classCode example
AFEnumerationValue
The AFEnumerationValue represents a specific condition of an enumerated set It is similar to a PI Digital State.
Public classCode example
AFEnumerationValues
The AFEnumerationValues is a collection of enumeration values.
Public classCode example
AFFile
AFFile is used to represent a file object.
Public classCode example
AFReferenceType
An AFReferenceType specifies a relationship type to use when making a hierarchical relationship between two elements.
Public classCode example
AFReferenceTypes
The collection of AFReferenceType objects.
Public classCode example
AFTable
The table object allows access to traditional relational database data through ADO.NET Data Tables.
Public classCode example
AFTableConnection
The table object allows access to traditional relational database data through ADO.NET Table Connections.
Public classCode example
AFTableConnections
The AFTableConnection collection allows you to define and/or access connection information for database tables.
Public classCode example
AFTables
The AFTable collection allows you to define and/or access information in database tables.
Public classCode example
AFValue
The AFValue object is used to represent the value of an AFAttribute along with a timestamp, status, and unit of measure.
Public classCode example
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.
Public classCode example
AFVersion
The AFVersion object returns information about a specific version of an ASDK object.

Structures

  StructureDescription
Public structure
AFAttributeValueQuery
Attribute value search query structure.
Public structure
AFAttributeValueQueryID
Attribute value search by ID query structure.

Interfaces

  InterfaceDescription
Public interface
IAFAttribute
Common interface for properties and methods of AFAttributeTemplate and AFAttribute.
Public interface
IAFVersionable
This interface defines the properties and methods for objects which support being versioned.

Delegates

Enumerations

  EnumerationDescription
Public enumeration
AFDataReferenceContext
The AFDataReferenceContext is an enumeration of the possible contexts supported for by data reference. It is returned by the AFDataReference.SupportedContexts property.
Public enumeration
AFDataReferenceMethod
The AFDataReferenceMethod is an enumeration of the possible methods which a data reference supports. It is returned by the AFDataReference.SupportedMethods property.
Public enumeration
AFElementType
This is an enumeration that defines the possible values used when you specify the type of an element.
Public enumeration
AFHealthStatus
This enumeration defines the values for the Health StatusAFEnumerationSet.
Public enumeration
AFQueryMode
The query mode is an enumeration of the possible values for specifying the query criteria.
Public enumeration
AFReferenceStrength
This is an enumeration that defines the possible values used when specifying the strength of an AFReferenceType.
Public enumeration
AFSearchMode
The search mode is an enumeration of the possible values for specifying the search criteria.
Public enumeration
AFSystemStateCode
This enumeration defines the values for the standard system enumeration set derived from the system digital code values in the PI Data Archive.
Public enumeration
AFValueStatus
This is an enumeration that defines the possible AFValue indicators when you retrieve the value of an AFAttribute.
TitleResults for “How to create a CRG?”Also Available in