.NET Framework Class Library for Silverlight
DependencyObject..::.CheckAccess Method

Determines whether the calling thread has access to this object.

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

Visual Basic (Declaration)
Public Function CheckAccess As Boolean
Visual Basic (Usage)
Dim instance As DependencyObject
Dim returnValue As Boolean

returnValue = instance.CheckAccess()
C#
public bool CheckAccess()

Return Value

Type: System..::.Boolean
true if the calling thread has access to this object; otherwise, false.
Remarks

This method is public, so any thread can check to see if it has access to this object.

If the thread has access then it can retrieve the Dispatcher.

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Tags :


Page view tracker