public void ConnectToLibrary( BaseLibraryConnection connection, string password, bool rememberPassword )
Parameters
- connection
- Connection to the library.
- password
- Password.
- rememberPassword
- Remember the password?
public void ConnectToLibrary( BaseLibraryConnection connection, string password, bool rememberPassword )
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.FileNotFoundException | This file was not found. |
EPLAN.Harness.API.Exceptions.FileExtensionException | The exception that is thrown when the file has the wrong extension. |
EPLAN.Harness.API.Exceptions.ArgumentException | Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property. |
EPLAN.Harness.API.Exceptions.SecurityException | The exception that is thrown when there is a problem with security. |
EPLAN.Harness.API.Exceptions.LibraryVersionException | The exception that is thrown when the library has the wrong version. |
EPLAN.Harness.API.Exceptions.ConnectionException | The exception that is thrown when there is a problem with the connection of an occurrence. |
// Obtain project before. Project project = ... // Create new connection or get any project connection. BaseLibraryConnection connection = ... project.ConnectToLibrary(connection);
// Obtain project before. Project project = ... // Create new connection or get any project connection. BaseLibraryConnection connection = ... // The password will be remembered for next time. project.ConnectToLibrary(connection, "password", true);