Proficy Historian Client Access API
Proficy.Historian.ClientAccess.API Namespace / IArchives Interface / SubscribeAny Method
Example


In This Topic
    SubscribeAny Method (IArchives)
    In This Topic
    Subscribe to archive changes in a Historian server such as: load, remove, modify or backup. Fires %% with details of the archive change.
    Syntax
    Sub SubscribeAny() 
    void SubscribeAny()
    void SubscribeAny(); 
    Example
    // establish event handler
    connection.ArchiveChangedEvent += new ArchiveChangedHandler(ArchiveChanged);
                  
    // request archive subscriptions
    connection.IArchives.SubscribeAny();
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also