Harness proD API Help
EPLAN.Harness.API.DataStructures Namespace / XmlLibraryConnection Class
Members Example
In This Topic
    XmlLibraryConnection Class
    In This Topic
    Connection to the file system-based XML library.
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.DataStructures.BaseLibraryConnection
          EPLAN.Harness.API.DataStructures.XmlLibraryConnection

    Syntax
    public class XmlLibraryConnection : BaseLibraryConnection 
    Example
    This example shows how to create new connections to an XML library.
    // Create connection to XML library.
    XmlLibraryConnection connection = new XmlLibraryConnection("path to the library");
    
    // Path to the created connection file.
    string path = connection.ConnectionPath;
    
    // Using this connection you can connect project to the library.
    Project project = ...
    project.ConnectToLibrary(connection):
    
    // If the library is password protected, you must specify the password:
    // 1.) When creating a connection (only once):
    connection = new XmlLibraryConnection("path to the library", "password");
    project.ConnectToLibrary(connection);
    
    // 2.) When connecting to the library (always when connecting to the library):
    connection = new XmlLibraryConnection("path to the library");
    project.ConnectToLibrary(connection, "password");
    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Property Path to the connection file. (Inherited from EPLAN.Harness.API.DataStructures.BaseLibraryConnection)
    Public Property Path to the XML library.  
    Public Property Name of the library.  
    Top
    Public Methods
     NameDescription
    Public Method Change saved password to this connection.  
    Top
    See Also