ITypeInfo.CreateInstance(Object, Guid, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The 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.
Remarks
For more information, see ITypeInfo::CreateInstance method.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.