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
Syntaxpublic ResourceManagementClient(
NetworkCredential credentials
)
Public Sub New (
credentials As NetworkCredential
)
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
private ResourceManagementClient specifiedCredentialClient;
public void InitializeClientWithCredentials()
{
System.Net.NetworkCredential creds = new System.Net.NetworkCredential("username2", "password2");
this.specifiedCredentialClient = new ResourceManagementClient(creds);
}
See Also