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.

ServiceBase::CanHandleSessionChangeEvent Property

 

Gets or sets a value that indicates whether the service can handle session change events received from a Terminal Server session.

Namespace:   System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

public:
[ComVisibleAttribute(false)]
property bool CanHandleSessionChangeEvent {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the service can handle Terminal Server session change events; otherwise, false.

Exception Condition
InvalidOperationException

This property is modified after the service was started.

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