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
- 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).
Remarks
This method can be overridden by a derived class.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.