Version

GetContext(Type,Boolean) Method

Returns an object of requested type that relates to the element or null.
Syntax
'Declaration
 
Public Overloads Overrides Function GetContext( _
   ByVal type As Type, _
   ByVal checkParentElementContexts As Boolean _
) As Object
public override object GetContext( 
   Type type,
   bool checkParentElementContexts
)

Parameters

type
The requested type or null to pick up default context object.
checkParentElementContexts
If true will walk up the parent chain looking for the context.

Return Value

Remarks
Classes that override this method normally need to override the ContinueDescendantSearch method as well.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also