GetWindowsDesktop

Returns the specified Windows desktop right.

Syntax

IWindowsDesktop GetWindowsDesktop (string name) 

Parameter

Specify the following parameter when using this method:

Parameter Description

name

The name of the Windows desktop.

Return value

The Windows desktop right with the specified name, or null if name is not in use.

Exceptions

GetWindowsDesktop may throw one of the following exceptions:

  • ApplicationException if it can’t find authorization data for the zone or if it failed to get the right (see the message returned by the exception for the reason).
  • ArgumentException if the parameter is null or empty.