Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property bool IsInitiating {
	bool get();
	void set(bool value);
}

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.

System_CAPS_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
Available since 3.0
Return to top
Show:
© 2017 Microsoft