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.

LocalServiceSecuritySettings::InactivityTimeout Property

 

Gets or sets the duration to wait before the channel is closed due to inactivity.

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

public:
property TimeSpan InactivityTimeout {
	TimeSpan get();
	void set(TimeSpan value);
}

Property Value

Type: System::TimeSpan

A TimeSpan that represents the duration to wait before the security session with the client is closed due to inactivity. The default is 2 minutes.

Exception Condition
ArgumentOutOfRangeException

The property is set to a value less than 0.

In a secure conversation session, note that both this property and the ReceiveTimeout property on the binding affect session timeout. The shorter of the two determines when timeouts occur.

Session settings such as this one are applicable under any of the following conditions:

Session settings such as this one are not applicable under any of the following conditions:

This example shows how get the InactivityTimeout value.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft