Parameters
- obj
- The object to be cast.
The value of this parameter can be
null
(Nothing
in Visual Basic).
Return Value
This method can return null
(Nothing
in Visual Basic).
The value of this parameter can be null
(Nothing
in Visual Basic).
The value of this parameter can be null
(Nothing
in Visual Basic).
This method can return null
(Nothing
in Visual Basic).
This method is useful in some COM tools (such as PHP) that do not allow to navigate between COM interfaces of an object, or provide an "amalgamated" set of members from multiple interfaces, when a specific interface is returned by a property or method. This leads to a problem if you want to downcast the object you have to a derived type. By passing the object through this method, the consuming COM tool is forced to use late binding, allowing the intended members be accessed.
This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.