PackageUtilities.CreateInstance Method

Definition

Overloads

CreateInstance(Type)

Creates a cocreateable COM object.

CreateInstance(ILocalRegistry, Guid)

Creates a cocreateable COM object.

CreateInstance(Guid)

Creates a cocreateable COM object.

CreateInstance(Type)

Creates a cocreateable COM object.

public:
 static System::Object ^ CreateInstance(Type ^ cocreateableType);
public:
 static Platform::Object ^ CreateInstance(Platform::Type ^ cocreateableType);
public static object CreateInstance (Type cocreateableType);
static member CreateInstance : Type -> obj
Public Function CreateInstance (cocreateableType As Type) As Object

Parameters

cocreateableType
Type

The type whose GUID is used to cocreate the COM object.

Returns

The instantiated object, or null if unsuccessful.

Applies to

CreateInstance(ILocalRegistry, Guid)

Creates a cocreateable COM object.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Object ^ CreateInstance(Microsoft::VisualStudio::Shell::Interop::ILocalRegistry ^ localRegistry, Guid clsid);
public static object CreateInstance (this Microsoft.VisualStudio.Shell.Interop.ILocalRegistry localRegistry, Guid clsid);
static member CreateInstance : Microsoft.VisualStudio.Shell.Interop.ILocalRegistry * Guid -> obj
<Extension()>
Public Function CreateInstance (localRegistry As ILocalRegistry, clsid As Guid) As Object

Parameters

localRegistry
ILocalRegistry

The SLocalRegistry service.

clsid
Guid

The CLSID of the object to create.

Returns

The instantiated object, or null if unsuccessful.

Applies to

CreateInstance(Guid)

Creates a cocreateable COM object.

public:
 static System::Object ^ CreateInstance(Guid clsid);
public static object CreateInstance (Guid clsid);
static member CreateInstance : Guid -> obj
Public Function CreateInstance (clsid As Guid) As Object

Parameters

clsid
Guid

The CLSID of the object to create.

Returns

The instantiated object, or null if unsuccessful.

Applies to