Aracılığıyla paylaş


ChannelFactory.Credentials Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the credentials used by clients to communicate a service endpoint over the channels produced by the factory.

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

Syntax

'Declaration
Public ReadOnly Property Credentials As ClientCredentials
public ClientCredentials Credentials { get; }

Property Value

Type: System.ServiceModel.Description.ClientCredentials
The ClientCredentials used by clients if they are configured for the factory or if the endpoint is not a nulla null reference (Nothing in Visual Basic) reference and is in either the Createdor Opening communication state; otherwise, nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.