PackageUtilities.CreateInstance 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.
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.