語言

HttpTransportSecurity.ClientCredentialType 屬性

定義

取得或設定用於認證的用戶端憑證類型。

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

備註

回傳值可為下列列舉成員之一:

適用於