Прочитај на енглеском Уреди

Делите путем


UCOMITypeInfo.CreateInstance(Object, Guid, Object) Method

Definition

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

C#
public void CreateInstance(object pUnkOuter, ref Guid riid, out object ppvObj);

Parameters

pUnkOuter
Object

Object which acts as the controlling IUnknown.

riid
Guid

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

ppvObj
Object

On successful return, a reference to the created object.

Remarks

For additional information about ITypeInfo::CreateInstance, see the MSDN Library.

Applies to

Производ Верзије
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1