共用方式為


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* 標準。

適用於