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

AF SDK Reference

AFEncodeType Enumeration

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEncodeType Enumeration
Defines the different ways a reference to an object can be encoded using one of the AFObjectGetPath methods.

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

Syntax

public enum AFEncodeType
Public Enumeration AFEncodeType

Dim instance As AFEncodeType
public enum class AFEncodeType
type AFEncodeType

Members

  Member nameValueDescription
ID0 Encode the reference with just the IDs.
Name1 Encode the reference with Names. Where necessary for restoring, the collection type will also be included.
IDThenName2 Encode the reference with both ID and Name, with preference for ID.
NameThenID3 Encode the reference with both Name and ID, with preference for Name.
ShortName4 Encode the reference with just the Name, omitting the collection type.
LongName5 Encode the reference with the Name, and always include the collection type.
FriendlyName6 Encode the reference with friendly Names suitable for messages.

Remarks

The resulting path when using the ShortName and FriendlyName options in the AFObjectGetPath methods is insufficient to restore the object using one of the AFObjectFindObjects methods. When encoding with the ID option, parts of the path which are unnecessary for restoration are omitted.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in