Harness proD API Help
EPLAN.Harness.API.DataStructures Namespace / MasterDataLibraryConnection Class
Members Example
In This Topic
    MasterDataLibraryConnection Class
    In This Topic
    Connection to the EPLAN Platform master data library.
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.DataStructures.BaseLibraryConnection
          EPLAN.Harness.API.DataStructures.BaseSqlLibraryConnection
             EPLAN.Harness.API.DataStructures.MasterDataLibraryConnection

    Syntax
    public class MasterDataLibraryConnection : BaseSqlLibraryConnection 
    Example
    This example shows how to create new connections to master data library.
    // Create connection using windows authentication.
    MasterDataLibraryConnection connection = new MasterDataLibraryConnection("serverName", "database", true);
    
    // Path to the created connection file.
    string path = connection.ConnectionPath;
    
    // Using this connection you can connect a project to the library.
    Project project = ...
    project.ConnectToLibrary(connection):
    
    // If you do not want to use windows authentication, you must specify userName and password:
    // 1.) When creating a connection (only once):
    connection = new MasterDataLibraryConnection("serverName", "database", "user name", "password");
    project.ConnectToLibrary(connection);
    
    // 2.) When connecting to the library (always when connecting to the library):
    connection = new MasterDataLibraryConnection("serverName", "database", false);
    project.ConnectToLibrary(connection, "user name", "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 Name of the database. (Inherited from EPLAN.Harness.API.DataStructures.BaseSqlLibraryConnection)
    Public Property Name of the server. (Inherited from EPLAN.Harness.API.DataStructures.BaseSqlLibraryConnection)
    Public Property Use windows authentication? (Inherited from EPLAN.Harness.API.DataStructures.BaseSqlLibraryConnection)
    Top
    Public Methods
     NameDescription
    Public Method Change saved data for connection to this connection. (Inherited from EPLAN.Harness.API.DataStructures.BaseSqlLibraryConnection)
    Top
    See Also