This documentation is archived and is not being maintained.

ContractDescription.SessionMode Property

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 SessionMode SessionMode { get; set; }
/** @property */
public SessionMode get_SessionMode ()

/** @property */
public void set_SessionMode (SessionMode value)

public function get SessionMode () : SessionMode

public function set SessionMode (value : SessionMode)

Not applicable.

Property Value

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.

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: