VerifyAccess Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Determines whether the calling thread has access to the current dispatcher.

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Sub VerifyAccess
public void VerifyAccess()
public:
void VerifyAccess()
member VerifyAccess : unit -> unit 
public function VerifyAccess()

Exceptions

Exception Condition
InvalidOperationException

The calling thread does not have access to the current dispatcher.

Remarks

Only the thread that created the current dispatcher can access it. Note, however, that because this method is public, any thread can check to see whether it has access to the current dispatcher.

The difference between the CheckAccess and VerifyAccess methods is that CheckAccess returns false if the calling thread does not have access to the current dispatcher, whereas VerifyAccess throws an exception.

.NET Framework Security

See Also

Reference

Dispatcher Class

Microsoft.SPOT Namespace