IsInstanceOfType Method
Collapse the table of content
Expand the table of content

DependencyObjectType.IsInstanceOfType Method

Determines whether the specified object is an instance of the current DependencyObjectType.

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

public bool IsInstanceOfType(
	DependencyObject dependencyObject
You cannot use methods in XAML.


Type: System.Windows.DependencyObject

The object to compare with the current DependencyObjectType.

Return Value

Type: System.Boolean
true if the class represented by the current DependencyObjectType is in the inheritance hierarchy of the DependencyObject passed as d; otherwise, false.

Objects of the exact same type return true.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

© 2015 Microsoft