Type::IsInstanceOfType Method
Silverlight
Determines whether the specified object is an instance of the current Type.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Parameters
- o
- Type: System::Object
The object to compare with the current Type.
Return Value
Type: System::Booleantrue 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 nullptr, or if the current Type is an open generic type (that is, ContainsGenericParameters returns true).
The following example demonstrates the use of the IsInstanceOfType method.
Note: |
|---|
To run this example, see Building Examples That Use a Demo Method and a TextBlock Control. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show:
Note: