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

備註

傳回值可以是下列其中一個列舉成員:

適用於