HttpTransportSecurity.ClientCredentialType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置要用于身份验证的客户端凭据的类型。
public:
property System::ServiceModel::HttpClientCredentialType ClientCredentialType { System::ServiceModel::HttpClientCredentialType get(); void set(System::ServiceModel::HttpClientCredentialType value); };
public System.ServiceModel.HttpClientCredentialType ClientCredentialType { get; set; }
member this.ClientCredentialType : System.ServiceModel.HttpClientCredentialType with get, set
Public Property ClientCredentialType As HttpClientCredentialType
属性值
枚举值之一,指示用于身份验证的客户端凭据的类型。
例外
将此属性设置为未定义的值。
示例
下面的代码演示如何访问和设置此属性。
// The code uses a shortcut to specify the security mode to Transport.
WSHttpBinding b = new WSHttpBinding(SecurityMode.Transport);
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
' The code uses a shortcut to specify the security mode to Transport.
Dim b As WSHttpBinding = New WSHttpBinding(SecurityMode.Transport)
b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows
注解
返回值可以是下列枚举成员之一: