共用方式為


BasicHttpMessageSecurity.ClientCredentialType 屬性

定義

指定用戶端要加以驗證的認證型別。

public:
 property System::ServiceModel::BasicHttpMessageCredentialType ClientCredentialType { System::ServiceModel::BasicHttpMessageCredentialType get(); void set(System::ServiceModel::BasicHttpMessageCredentialType value); };
public System.ServiceModel.BasicHttpMessageCredentialType ClientCredentialType { get; set; }
member this.ClientCredentialType : System.ServiceModel.BasicHttpMessageCredentialType with get, set
Public Property ClientCredentialType As BasicHttpMessageCredentialType

屬性值

BasicHttpMessageCredentialType

BasicHttpMessageCredentialType 列舉的成員。 預設值是 UserName

範例

BasicHttpSecurity security = binding.Security;
BasicHttpMessageSecurity msgSecurity = security.Message;
Dim security As BasicHttpSecurity = binding.Security
Dim msgSecurity As BasicHttpMessageSecurity = security.Message

備註

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

適用於