ThreadHelper.CheckAccess Method
Determines whether the call is being made on the UI thread.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function CheckAccess As Boolean
public static bool CheckAccess()
public:
static bool CheckAccess()
static member CheckAccess : unit -> bool
public static function CheckAccess() : boolean
Return Value
Type: Boolean
Returns true if the call is on the UI thread, otherwise returns false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.