ServiceHostBase.Credentials Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the credential for the service hosted.

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

member Credentials : ServiceCredentials with get

Property Value

Type: System.ServiceModel.Description.ServiceCredentials

The ServiceCredentials for the service hosted.

ServiceCredentials credentials =
                hostDefault.Credentials;

.NET Framework
Available since 3.0
Return to top
Show: