Gets the current HTTP Digest credential.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Property ValueType: System.ServiceModel.Security.HttpDigestClientCredential
A HttpDigestClientCredential that represents the credential that the client uses to authenticate to the service when the HTTP Digest authentication method is chosen.
You can use the object returned by this property to configure the credential by calling the AllowedImpersonationLevel property.
Similarly, you can specify the network credential to use if it is different from the current thread's token.
The following code shows how to use this property to set the credentials user name and password.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.