PackageUtilities.CreateInstance Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| CreateInstance(Guid) |
Crée un objet COM CoCreatable. |
| CreateInstance(Type) |
Crée un objet COM CoCreatable. |
| CreateInstance(ILocalRegistry, Guid) |
Crée un objet COM CoCreatable. |
CreateInstance(Guid)
Crée un objet COM CoCreatable.
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
Paramètres
- clsid
- Guid
CLSID de l'objet à créer.<
Retours
Objet instancié, ou en null cas d’échec.
S’applique à
CreateInstance(Type)
Crée un objet COM CoCreatable.
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
Paramètres
- cocreateableType
- Type
Type.
Retours
Objet instancié, ou en null cas d’échec.
S’applique à
CreateInstance(ILocalRegistry, Guid)
Crée un objet COM CoCreatable.
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
Paramètres
- localRegistry
- ILocalRegistry
Service SLocalRegistry.
- clsid
- Guid
CLSID de l'objet à créer.<
Retours
Objet instancié, ou en null cas d’échec.