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

AF SDK Reference

AFObject Class

  • Last UpdatedNov 18, 2025
  • 7 minute read
AFObject Class
Base class used for all objects in the AF SDK.

Inheritance Hierarchy

SystemObject
  OSIsoft.AFAFObject
    More...

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

[SerializableAttribute]
public abstract class AFObject : IComparable<AFObject>, 
	IComparable, IEquatable<AFObject>, ISerializable, IPIPersist
<SerializableAttribute>
Public MustInherit Class AFObject
	Implements IComparable(Of AFObject), IComparable, 
	IEquatable(Of AFObject), ISerializable, IPIPersist

Dim instance As AFObject
[SerializableAttribute]
public ref class AFObject abstract : IComparable<AFObject^>, 
	IComparable, IEquatable<AFObject^>, ISerializable, IPIPersist
[<AbstractClassAttribute>]
[<SerializableAttribute>]
type AFObject =  
    class
        interface IComparable<AFObject>
        interface IComparable
        interface IEquatable<AFObject>
        interface ISerializable
        interface IPIPersist
    end

The AFObject type exposes the following members.

Properties

  NameDescription
Public property
ID
Read-only property that provides a unique identifier for the object to be used for quick access that is not dependent upon the index.
Public property
Identity
This read-only property contains identity of the object.
Public property
IsDeleted
This read-only property indicates whether the object has been deleted.
Public property
PISystem
This read-only property allows access to the PISystem associated with this object.
Public property
UniqueID
Read-only property that provides the object's ID as a String.

Methods

  NameDescription
Public method
CompareTo(Object)
Compares this instance with a specified Object.
Public method
CompareTo(AFObject)
Compares this instance with a specified AFObject.
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public method
Equals(AFObject)
Indicates whether the current object is equal to another object of the same type.
Public methodStatic member
FindObject(String)
Finds the object identified by the full path.
Public methodStatic member
FindObject(String, AFObject)
Finds the object identified by the path, relative from the specified object.
Public methodStatic member
FindObject(IListAFPathToken, AFObject)
Finds the object identified by the list of parsed path tokens relative from an optional object.
Public methodStatic member
FindObjects(String)
Finds a list of objects identified by the full path.
Public methodStatic member
FindObjects(String, AFObject)
Finds a list of objects identified by the path, relative from the specified object.
Public methodStatic member
FindObjects(IListAFPathToken, AFObject)
Finds a list of objects identified by the list of parsed path tokens relative from an optional object.
Public methodStatic member
GenerateUniqueName
Generate a unique name for the items in the specified list.
Public method
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.)
Public method
GetPath
Returns the full path to the object, using just the names.
Public method
GetPath(AFObject)
Returns the path to the object relative from another object.
Public method
GetPath(AFEncodeType, AFObject)
Returns the path to the object relative from another object, using the name and/or id as specified by encodeType.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
Persist
This method returns the persistence string for the object.
Public method
ToString
Returns a String that represents the current object.
(Overrides ObjectToString.)
Public methodStatic member
ValidateName(String, String)
Helper function to validate the name according to the default rules for valid names in the AF SDK.
Public methodStatic member
ValidateName(AFIdentity, String, String)
Helper function to validate the name according to the rules for valid names of the specified object type in the AF SDK.

Operators

  NameDescription
Public operatorStatic member
Equality
The equality operator (==) compares its operands to determine if they are equal.
Public operatorStatic member
GreaterThan
The greater than relation operator (>) compares its operands to determine which one is greater than the other.
Public operatorStatic member
GreaterThanOrEqual
The greater than or equal relation operator (>=) compares its operands to determine which one is greater than or equal to the other.
Public operatorStatic member
Inequality
The inequality operator (!=) compares its operands to determine if they are not equal.
Public operatorStatic member
LessThan
The less than relation operator (<) compares its operands to determine which one is less than the other.
Public operatorStatic member
LessThanOrEqual
The less than or equal relation operator (<=) compares its operands to determine which one is less than or equal to the other.

Remarks

This base class provides common functionality and implementation for all AF SDK objects (not collections) in the SDK.

Version Information

AFSDK


See Also

Inheritance Hierarchy

SystemObject
  OSIsoft.AFAFObject
    OSIsoft.AFAFCategory
    OSIsoft.AFAFContact
    OSIsoft.AFAFDatabase
    OSIsoft.AFAFLibrary
    OSIsoft.AFAFPlugIn
    OSIsoft.AFAFSecurityIdentity
    OSIsoft.AFAFSecurityMapping
    OSIsoft.AF.AnalysisAFAdjustment
    OSIsoft.AF.AnalysisAFAnalysis
    OSIsoft.AF.AnalysisAFAnalysisRule
    OSIsoft.AF.AnalysisAFAnalysisService
    OSIsoft.AF.AnalysisAFAnalysisTemplate
    OSIsoft.AF.AnalysisAFResult
    OSIsoft.AF.AssetAFAttribute
    OSIsoft.AF.AssetAFAttributeTemplate
    OSIsoft.AF.AssetAFBaseElement
    OSIsoft.AF.AssetAFDataReference
    OSIsoft.AF.AssetAFElementTemplate
    OSIsoft.AF.AssetAFEnumerationSet
    OSIsoft.AF.AssetAFEnumerationValue
    OSIsoft.AF.AssetAFReferenceType
    OSIsoft.AF.AssetAFTable
    OSIsoft.AF.AssetAFTableConnection
    OSIsoft.AF.CollectiveAFCollective
    OSIsoft.AF.CollectiveAFCollectiveMember
    OSIsoft.AF.ModelingAFConnection
    OSIsoft.AF.ModelingAFLayer
    OSIsoft.AF.ModelingAFPort
    OSIsoft.AF.NotificationAFDeliveryChannel
    OSIsoft.AF.NotificationAFDeliveryFormat
    OSIsoft.AF.NotificationAFNotificationContact
    OSIsoft.AF.NotificationAFNotificationContactTemplate
    OSIsoft.AF.NotificationAFNotificationContent
    OSIsoft.AF.NotificationAFNotificationRule
    OSIsoft.AF.NotificationAFNotificationRuleSubscriber
    OSIsoft.AF.NotificationAFNotificationRuleTemplate
    OSIsoft.AF.PIPICollective
    OSIsoft.AF.PIPICollectiveMember
    OSIsoft.AF.PIPIServer
    OSIsoft.AFPISystem
    OSIsoft.AF.TimeAFTimeRule
    OSIsoft.AF.UnitsOfMeasureUOM
    OSIsoft.AF.UnitsOfMeasureUOMBaseClass
    OSIsoft.AF.UnitsOfMeasureUOMClass
    OSIsoft.AF.UnitsOfMeasureUOMDatabase
    OSIsoft.AF.UnitsOfMeasureUOMGroup
TitleResults for “How to create a CRG?”Also Available in