IVsShell.AdviseShellPropertyChanges(IVsShellPropertyEvents, UInt32) Méthode

Définition

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

Int32

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 .

S’applique à