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.


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
Available since 3.0
Return to top