ContractDescription.SessionMode Property

Definition

Gets or sets a value that indicates whether a session is required by the contract.

C#
public System.ServiceModel.SessionMode SessionMode { get; set; }

Property Value

The SessionMode that specifies the support for reliable sessions that a contract requires or supports.

Examples

C#
SessionMode sm = cd.SessionMode;
Console.WriteLine("\tSessionMode: {0}", sm.ToString());

Remarks

A reliable session is a way of correlating a set of messages exchanged between two or more endpoints (using the WS-ReliableMessaging specification) to provide assurances of the reliability of the connection.

Applies to

Produit Versions
.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, 4.7.1, 4.7.2, 4.8, 4.8.1