MessageSecurityOverTcp.ClientCredentialType プロパティ

定義

クライアントが SOAP レベルでクライアント自身をサービスに対して認証するために使用する、クライアント資格情報の種類を指定します。

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

プロパティ値

MessageCredentialType

MessageCredentialType。 既定値は、Windows です。

例外

ClientCredentialType の値が有効な MessageCredentialType ではありません。

次のコードでは、このプロパティにアクセスして設定する方法を示します。

NetTcpBinding binding = new NetTcpBinding();
// Specify the mode, then the credential type.
binding.Security.Mode = SecurityMode.Message;
binding.Security.Message.ClientCredentialType =
    MessageCredentialType.UserName;
binding.Security.Message.AlgorithmSuite =
    System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256;
Dim binding As New NetTcpBinding()
' Specify the mode, then the credential type.
binding.Security.Mode = SecurityMode.Message
binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName
binding.Security.Message.AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256

注釈

戻り値は次の列挙メンバーのいずれかです。

適用対象