Windows apps
Collapse the table of content
Expand the table of content

IsInstanceOfType Method

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

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public virtual bool IsInstanceOfType(
	Object o
)

Parameters

o
Type: System..::..Object
The object to compare with the current type.

Return Value

Type: System..::..Boolean
true if the current Type is in the inheritance hierarchy of the object represented by o, or if the current Type is an interface that o supports. false if neither of these conditions is the case, or if o is nullNothingnullptrunita null reference (Nothing in Visual Basic), or if the current Type is an open generic type (that is, ContainsGenericParameters returns true).

This method can be overridden by a derived class.

Show:
© 2017 Microsoft