Export (0) Print
Expand All

OperationDescription.IsInitiating Property

Gets or sets a value that indicates whether the method implements an operation that can initiate a session on the server (if such a session exists).

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

public bool IsInitiating { get; set; }

Property Value

Type: System.Boolean
true if the operation is permitted to initiate a session on the server, otherwise, false. The default is true.

The IsInitiating property controls whether an operation can be the first operation called when a session is created.

NoteNote

The value of ServiceContractAttribute.SessionMode must be true and the binding used must support sessions for the IsInitiating property to work properly.

The default is true, which means that an operation can be the first one called on a channel. Subsequent calls to the initiating method have no effect, other than to call the method. No other sessions are created.

Typically, you set IsInitiating to false to force clients to call another method on the service before they can invoke this one.

IsInitiating corresponds to the IsInitiating property in the Windows Communication Foundation (WCF) programming model.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft