Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Project Class / AddLibraryConnection Method / AddLibraryConnection(String) Method
Path to the connection file.
In This Topic
    AddLibraryConnection(String) Method
    In This Topic
    Add the library connection to this project.
    Syntax
    public void AddLibraryConnection( 
       string connectionFilePath
    )

    Parameters

    connectionFilePath
    Path to the connection file.
    Exceptions
    ExceptionDescription
    This file was not found.
    The exception that is thrown when the file has the wrong extension.
    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    Remarks
    Library related with this connection is not set as active after this method. Use ConnectToLibrary(BaseLibraryConnection,String,Boolean) or ConnectToLibrary(BaseLibraryConnection,String,String,Boolean) to set library as active.
    See Also