Interface IInitializeCommand (shobjidl_core.h)

Expose une méthode unique utilisée pour initialiser des objets qui implémentent IExplorerCommandState, IExecuteCommand ou IDropTarget avec le nom de la commande spécifiée par l’application et ses propriétés inscrites.

Héritage

L’interface IInitializeCommand hérite de l’interface IUnknown. IInitializeCommand possède également les types de membres suivants :

Méthodes

L’interface IInitializeCommand possède ces méthodes.

 
IInitializeCommand ::Initialize

Initialisez des objets qui partagent une implémentation de IExplorerCommandState, IExecuteCommand ou IDropTarget avec le nom de commande spécifié par l’application et ses propriétés inscrites.

Remarques

Quand implémenter

Implémentez IInitializeCommand dans les situations suivantes.
  • Implémentez cette interface pour différencier les commandes associées qui partagent les implémentations de IExplorerCommandState, IDropTarget ou IExecuteCommand. La différenciation s’effectue via le nom de commande passé dans IInitializeCommand ::Initialize. Les commandes peuvent également utiliser Initialize pour passer un conteneur de propriétés spécifique pour la commande, à l’aide des propriétés que la commande a placées dans le Registre.

Quand utiliser

N’appelez pas directement la méthode de IInitializeCommand . Windows Explorer appelle cette méthode lorsqu’un objet verbe qui implémente cette interface est appelé.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 7 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 R2 [applications de bureau uniquement]
Plateforme cible Windows
En-tête shobjidl_core.h (inclure Shobjidl.h)