RuntimeEnvironment.GetRuntimeInterfaceAsObject Method (Guid, Guid)
Returns an instance of a type that represents a COM object by a pointer to its IUnknown interface.
Assembly: mscorlib (in mscorlib.dll)
<SecurityCriticalAttribute> <ComVisibleAttribute(False)> Public Shared Function GetRuntimeInterfaceAsObject ( clsid As Guid, riid As Guid ) As Object
The identifier for the desired class.
The identifier for the desired interface.
Return ValueType: System.Object
An object that represents the specified unmanaged COM object.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 4.0