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

AF SDK Reference

PIServers.Contains Method (Guid)

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServers.Contains Method (Guid)
This method determines whether the collection contains a specific item referenced by id.

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

Syntax

public bool Contains(
	Guid id
)
Public Function Contains ( 
	id As Guid
) As Boolean

Dim instance As PIServers
Dim id As Guid
Dim returnValue As Boolean

returnValue = instance.Contains(id)
public:
virtual bool Contains(
	Guid id
) sealed
abstract Contains : 
        id : Guid -> bool 
override Contains : 
        id : Guid -> bool 

Parameters

id
Type: SystemGuid
The id to locate in the collection.

Return Value

Type: Boolean
Returns if the collection contains an item with the specified id; otherwise, .

Implements

IAFListContains(Guid)

Remarks

This method approaches an O(1) operation.

Version Information

AFSDK


See Also

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