NetTcpSecurity.Message プロパティ

定義

NetTcpBinding を使用して構成されたサービスの、メッセージ レベルのセキュリティ要件の種類を取得します。

public:
 property System::ServiceModel::MessageSecurityOverTcp ^ Message { System::ServiceModel::MessageSecurityOverTcp ^ get(); void set(System::ServiceModel::MessageSecurityOverTcp ^ value); };
public:
 property System::ServiceModel::MessageSecurityOverTcp ^ Message { System::ServiceModel::MessageSecurityOverTcp ^ get(); };
public System.ServiceModel.MessageSecurityOverTcp Message { get; set; }
public System.ServiceModel.MessageSecurityOverTcp Message { get; }
member this.Message : System.ServiceModel.MessageSecurityOverTcp with get, set
member this.Message : System.ServiceModel.MessageSecurityOverTcp
Public Property Message As MessageSecurityOverTcp
Public ReadOnly Property Message As MessageSecurityOverTcp

プロパティ値

エンドポイントのメッセージ レベルのセキュリティ要件の種類を示す MessageSecurityOverTcp

NetTcpSecurity security = binding.Security;
MessageSecurityOverTcp msTcp = security.Message;

Console.WriteLine("Dumping NetTcpSecurity object:");
Console.WriteLine("\tMessageSecurityOverTcp:");
Console.WriteLine("\t\tAlgorithm Suite: {0}", msTcp.AlgorithmSuite);
Console.WriteLine("\t\tClient Credential Type: {0}", msTcp.ClientCredentialType);

注釈

Message は、SOAP メッセージの整合性と機密性を確保し、通信ピアの相互認証を行うためのメッセージ レベルのセキュリティを使用します。 バインディング上でこのセキュリティ モードが選択された場合、チャネル スタックは、メッセージ セキュリティ バインド要素を使用して構成され、SOAP メッセージは WS-Security* 標準に従って保護されます。

適用対象