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

AF SDK Reference

AFCollective.FindPrimary Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFCollective.FindPrimary Method
Finds the primary member of the collective.

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

Syntax

public AFCollectiveMember FindPrimary()
Public Function FindPrimary As AFCollectiveMember

Dim instance As AFCollective
Dim returnValue As AFCollectiveMember

returnValue = instance.FindPrimary()
public:
AFCollectiveMember^ FindPrimary()
member FindPrimary : unit -> AFCollectiveMember 

Return Value

Type: AFCollectiveMember
Returns the primary member of the AFCollective.

Remarks

This method returns the AFCollectiveMember with a AFServerRole set to Primary.

Version Information

AFSDK


See Also

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