ClientCredentials Constructor
Collapse the table of content
Expand the table of content

ClientCredentials Constructor ()


Initializes a new instance of the ClientCredentials class.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public ClientCredentials()

This constructor creates a ClientCredentials object with default settings, for example, SupportInteractive = true.

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("");

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft