If I have list of PI archive servers and need to connect based on choice through csharp.
Please allow me to refer you to the AF SDK Reference and more specific to the OSIsoft.AF.PI namespace which mainly implements objects and methods specific to the PI Data Archive.
The PIServers class represents a client side collection of defined PI Data Archive connections also referred to as the Known Servers Table. After instantiating the PIServers object, you have access to defined servers by GUID, index and name. You can iterate through the collection to retrieve those information.
The connection itself is represented by the PIServer object.
Please make sure to scroll all the way down for related code samples.
Retrieving data ...