FactoryGetConnection Method (String, String) |
Gets an HTTP connection to an innovator instance (or proxy) at the given URL
Namespace: Innovator.ClientAssembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax public static IRemoteConnection GetConnection(
string url,
string userAgent
)
Public Shared Function GetConnection (
url As String,
userAgent As String
) As IRemoteConnection
Parameters
- url
- Type: SystemString
URL of the innovator instance (or proxy) - userAgent
- Type: SystemString
User agent string to use for the connection
Return Value
Type:
IRemoteConnectionA connection object
Examples using Innovator.Client;
var conn = Factory.GetConnection("URL", "USER_AGENT");
conn.Login(new ExplicitCredentials("DATABASE", "USER_NAME", "PASSWORD"));
See Also