C# Class OpenSlx.Lib.Utility.LegacySlx.SlxConnectionInfo

Used to enumerate connections on a SalesLogix installation and build the connection strings. Really more for legacy installations since it will access the connections defined by the LAN client.
Show file Open project: nicocrm/OpenSlx Class Usage Examples

Public Methods

Method Description
BuildConnectionString ( ) : String

Build connection string with the default password. If the password has not been set yet, it will be passed as a blank password.

BuildConnectionString ( String password ) : String

Create a connection string using the provided password. Note this doesn't modify the Password property.

BuildConnectionString ( String username, String password ) : String

Build a user connection string. Note that this doesn't modify the Username or Password properties.

ListAllConnections ( ) : IList

Read list of connections defined in registry and return them in order. The connections don't include the password as this is not stored in the registry. If no connection is defined, an empty list is returned.

SlxConnectionInfo ( ) : System
SlxConnectionInfo ( String connectionString ) : System

Define the SlxConnectionInfo with pre-built connection string.

ToString ( ) : string

Method Details

BuildConnectionString() public method

Build connection string with the default password. If the password has not been set yet, it will be passed as a blank password.
public BuildConnectionString ( ) : String
return String

BuildConnectionString() public method

Create a connection string using the provided password. Note this doesn't modify the Password property.
public BuildConnectionString ( String password ) : String
password String
return String

BuildConnectionString() public method

Build a user connection string. Note that this doesn't modify the Username or Password properties.
public BuildConnectionString ( String username, String password ) : String
username String
password String
return String

ListAllConnections() public static method

Read list of connections defined in registry and return them in order. The connections don't include the password as this is not stored in the registry. If no connection is defined, an empty list is returned.
public static ListAllConnections ( ) : IList
return IList

SlxConnectionInfo() public method

public SlxConnectionInfo ( ) : System
return System

SlxConnectionInfo() public method

Define the SlxConnectionInfo with pre-built connection string.
public SlxConnectionInfo ( String connectionString ) : System
connectionString String
return System

ToString() public method

public ToString ( ) : string
return string