IVsShell.AdviseShellPropertyChanges(IVsShellPropertyEvents, UInt32) 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.
Permet aux clients de recevoir des notifications de modification de propriété apportées à l'environnement.
public:
int AdviseShellPropertyChanges(Microsoft::VisualStudio::Shell::Interop::IVsShellPropertyEvents ^ pSink, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int AdviseShellPropertyChanges(Microsoft::VisualStudio::Shell::Interop::IVsShellPropertyEvents const & pSink, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int AdviseShellPropertyChanges (Microsoft.VisualStudio.Shell.Interop.IVsShellPropertyEvents pSink, out uint pdwCookie);
abstract member AdviseShellPropertyChanges : Microsoft.VisualStudio.Shell.Interop.IVsShellPropertyEvents * uint32 -> int
Public Function AdviseShellPropertyChanges (pSink As IVsShellPropertyEvents, ByRef pdwCookie As UInteger) As Integer
Paramètres
- pSink
- IVsShellPropertyEvents
[in] Pointeur vers l'interface IVsShellPropertyEvents.
- pdwCookie
- UInt32
[out] Pointeur vers un handle abstrait au client qui est notifié des modifications apportées aux propriétés d'environnement.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Signature COM
À partir de vsshell. idl :
HRESULT IVsShell::AdviseShellPropertyChanges(
[in] IVsShellPropertyEvents *pSink,
[out] VSCOOKIE *pdwCookie
);
Ce même pdwCookie est passé dans l’appel à UnadviseShellPropertyChanges .