'Usage
Dim instance As InteropHelper Dim obj As Object Dim value As Object value = instance.AsObject(obj)
Parameters
- obj
- The object to be cast.
'Usage
Dim instance As InteropHelper Dim obj As Object Dim value As Object value = instance.AsObject(obj)
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.