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)

Syntax

'Declaration
Public Overridable Function IsInstanceOfType ( _
    o As Object _
) As Boolean
public virtual bool IsInstanceOfType(
    Object o
)
public:
virtual bool IsInstanceOfType(
    Object^ o
)
abstract IsInstanceOfType : 
        o:Object -> bool 
override IsInstanceOfType : 
        o:Object -> bool 
public function IsInstanceOfType(
    o : Object
) : boolean

Parameters

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).

Remarks

This method can be overridden by a derived class.

.NET Framework Security

See Also

Reference

Type Class

System Namespace