Export (0) Print
Expand All

ClientCredentials Constructor

Initializes a new instance of the ClientCredentials class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Public method ClientCredentials() Initializes a new instance of the ClientCredentials class.
Protected method ClientCredentials(ClientCredentials) This is a copy constructor.

The most common way to use this class is to access its properties from the client object and not to instantiate it directly. The following code shows how to do this.

WSHttpBinding b = new WSHttpBinding();
EndpointAddress ea = new EndpointAddress("http://localhost/Calculator");
CalculatorClient client = new CalculatorClient(b, ea);
IssuedTokenClientCredential itcc = client.ClientCredentials.IssuedToken;

itcc.LocalIssuerAddress = new EndpointAddress("http://fabrikam.com/sts");

Community Additions

© 2014 Microsoft