ITypeInfo2.CreateInstance(Object, Guid, Object) Method

Definition

Creates a new instance of a type that describes a component class (coclass).

public:
 void CreateInstance(System::Object ^ pUnkOuter, Guid % riid, [Runtime::InteropServices::Out] System::Object ^ % ppvObj);
public void CreateInstance (object pUnkOuter, ref Guid riid, out object ppvObj);
public void CreateInstance (object? pUnkOuter, ref Guid riid, out object ppvObj);
abstract member CreateInstance : obj * Guid * obj -> unit
Public Sub CreateInstance (pUnkOuter As Object, ByRef riid As Guid, ByRef ppvObj As Object)

Parameters

pUnkOuter
Object

An object that acts as the controlling IUnknown.

riid
Guid

The IID of the interface that the caller uses to communicate with the resulting object.

ppvObj
Object

When this method returns, contains a reference to the created object. This parameter is passed uninitialized.

Implements

Remarks

For more information, see ITypeInfo::CreateInstance method.

Applies to