NonDualMessageSecurityOverHttp.EstablishSecurityContext Property

Definition

Gets or sets a value that indicates whether a security context token is established.

public bool EstablishSecurityContext { get; set; }

Property Value

true if a security context token is established; otherwise, false.

Examples

The following code shows how to set this property.

WSHttpBinding binding = new WSHttpBinding();
binding.Security.Mode = SecurityMode.Message;
binding.Security.Message.AlgorithmSuite =
    System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256;
binding.Security.Message.EstablishSecurityContext = true;

Remarks

This property controls whether a security context token is established through a WS-SecureConversation exchange between the client and the service. Setting it to true requires that the remote party supports WS-SecureConversation.

Applies to

מוצר גירסאות
.NET 8 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)