ContractDescription.SessionMode Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Public Property SessionMode As SessionMode

Property Value

Type: System.ServiceModel.SessionMode

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

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.

Dim sm As SessionMode = cd.SessionMode
Console.WriteLine(Constants.vbTab & "SessionMode: {0}", sm.ToString())

.NET Framework
Available since 3.0
Return to top
Show: