Editar

Partilhar via


NetTcpSecurity.Message Property

Definition

Gets the type of message-level security requirements for a service configured with a 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

Property Value

The MessageSecurityOverTcp that indicates the type of message-level security requirements for an endpoint.

Examples

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);

Remarks

Message uses message-level security for the integrity and confidentiality of the SOAP message and for mutual authentication of the communication peers. If this security mode is selected on a binding, the channel stack is configured with message security binding elements and the SOAP messages are secured in compliance with WS-Security* standards.

Applies to