Package::CreateInstance Method (Guid, Guid, Type^)
Visual Studio 2015
Creates the specified COM object using the Visual Studio's local registry CLSID object.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Parameters
- clsid
-
Type:
System::Guid
The CLSID of the object to create.
- iid
-
Type:
System::Guid
The interface IID the object implements.
- type
-
Type:
System::Type^
The managed type of the object to return.
The CreateInstance method creates the specified object using the Visual Studio local registry CLSID object. After creation it is cast to the given type. If Visual Studio cannot create it for any reason, the package uses Activator.CreatInstance. This allows managed classes to be registered in local to the particular Visual Studio version in HKLM\Software\Microsoft\VisualStudio\8.0\clsid.
Show: