Proficy Historian Client Access API
Proficy.Historian.ClientAccess.API Namespace / ServerConnection Class
Members


In This Topic
    ServerConnection Class
    In This Topic
    Encapsulates a client connection to a Historian server. Provides methods for interacting with a server for query, creation, configuration and maintenance of: data, tags, messages, collectors and archive files.
    Object Model
    ServerConnection ClassIArchives InterfaceICollectors InterfaceIData InterfaceIDataStores InterfaceIEnumeratedSets InterfaceIMessages InterfaceIPublish InterfaceIQueryModifiers InterfaceIServer InterfaceITags InterfaceIUserDefinedTypes Interface
    Syntax
    Example
    // sample connection to a Historian server on local machine // current Windows user credentials are used for authorization ServerConnection connection = new ServerConnection(new ConnectionProperties { ServerCertificateValidationMode = CertificateValidationMode.None }); // establish a connection connection.Connect(); // output the local server-time Console.WriteLine("Server time is " + connection.IServer.GetCurrentServerTime().ToLocalTime()); // disconnect connection.Disconnect();
    Inheritance Hierarchy

    System.Object
       Proficy.Historian.ClientAccess.API.ServerConnection

    Requirements

    Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

    See Also