SystemParameters.IsRemoteSession Property

 

Gets a value that indicates whether the calling process is associated with a Terminal Services client session.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static bool IsRemoteSession {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: System.Boolean

true if the calling process is associated with a Terminal Services client session; false if the calling process is associated with the Terminal Server console session.

This system metric is used in a Terminal Services environment.

Maps to SM_REMOTESESSION. See GetSystemMetrics.

<object property="{ SystemParameters.IsRemoteSession}"/>

UnmanagedCode

to call this method, because it calls an unsafe native method. Associated enumeration:

UnmanagedCode

.NET Framework
Available since 3.0
Return to top
Show: