Click or drag to resize

ResourceManagementClient Constructor (NetworkCredential)

Initializes a new instance of the ResourceManagementClient class

Namespace:  Lithnet.ResourceManagement.Client
Assembly:  Lithnet.ResourceManagement.Client (in Lithnet.ResourceManagement.Client.dll) Version: 1.0.6435.24467
Syntax
public ResourceManagementClient(
	NetworkCredential credentials
)

Parameters

credentials
Type: System.NetNetworkCredential
The credentials to use to connect to the service
Examples
The following example shows how to load an instance of the ResourceManagementClient using a specific set of credentials
Example
private ResourceManagementClient specifiedCredentialClient;

public void InitializeClientWithCredentials()
{
    // Set the credentials that this specific instance of the resource management client will use
    System.Net.NetworkCredential creds = new System.Net.NetworkCredential("username2", "password2");
    this.specifiedCredentialClient = new ResourceManagementClient(creds);
}
See Also