This documentation is archived and is not being maintained.
MessageCredentialType Enumeration
Visual Studio 2008
Enumerates the valid message credential types.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
This enumeration is used to specify the credential type required by a binding for authentication. It is used by all standard bindings except the BasicHttpBinding, which uses BasicHttpMessageCredentialType.
The following code shows how to access and set ClientCredentialType to a member of this enumeration.
Dim myServiceHost As New ServiceHost(GetType(CalculatorService)) ' Create a binding to use. Dim binding As New WSHttpBinding() binding.Security.Mode = SecurityMode.Message binding.Security.Message.ClientCredentialType = _ MessageCredentialType.Certificate ' Set the client certificate. myServiceHost.Credentials.ClientCertificate.SetCertificate( _ StoreLocation.CurrentUser, _ StoreName.My, _ X509FindType.FindBySubjectName, _ "client.com")
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: