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

AF SDK Reference

PISystems.AFDirectoryOptions Enumeration

  • Last UpdatedNov 18, 2025
  • 2 minute read
PISystems.AFDirectoryOptions Enumeration
Defines the directory options used when looking up a PISystem in the PISystems collection or a PIServer in the PIServers collection.

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

Syntax

[FlagsAttribute]
public enum AFDirectoryOptions
<FlagsAttribute>
Public Enumeration AFDirectoryOptions

Dim instance As PISystems.AFDirectoryOptions
[FlagsAttribute]
public enum class AFDirectoryOptions
[<FlagsAttribute>]
type AFDirectoryOptions

Members

  Member nameValueDescription
None0 No option has been set. When looking for an item in the collection by name and the item cannot be found in the existing collection, then no additional attempt to find the item will be made.
AutoAdd1 When looking for an item in the collection by name and the item cannot be found in the existing collection, a new object is automatically added if the specified name is valid. If CheckIP is set, then the specified name is checked for a resolvable network address before adding.
CheckIP2 If a new object is to be added as a result of the AutoAdd option, then the specified name is checked for a resolvable network address before it is added. The minimum and maximum timeouts before an invalid host address is checked again is determined by the MinCheckIPTimeout and MaxCheckIPTimeout settings.
Default3 Default option has AutoAdd and CheckIP enabled.

Remarks

This enumeration defines the directory options for the PISystems.DirectoryOptions and PIServers.DirectoryOptions properties. The PISystems.DirectoryOptions property controls the behavior of the collection methods used to look up a PISystem in the PISystems collection. The PIServers.DirectoryOptions property controls the behavior of the collection methods used to look up a PIServer in the PIServers collection.

Version Information

AFSDK


See Also

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