VsShellUtilities.WhenPropertyChanged(IVsShell, Int32, Action<Object>) 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.
Appelle un rappel lorsqu’une propriété de l’interpréteur de commandes change ensuite.
public:
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ WhenPropertyChanged(Microsoft::VisualStudio::Shell::Interop::IVsShell ^ shell, int propid, Action<System::Object ^> ^ callback);
public static IDisposable WhenPropertyChanged (this Microsoft.VisualStudio.Shell.Interop.IVsShell shell, int propid, Action<object> callback);
static member WhenPropertyChanged : Microsoft.VisualStudio.Shell.Interop.IVsShell * int * Action<obj> -> IDisposable
<Extension()>
Public Function WhenPropertyChanged (shell As IVsShell, propid As Integer, callback As Action(Of Object)) As IDisposable
Paramètres
- shell
- IVsShell
Service de Shell.
- propid
- Int32
Propriété à écouter pour les modifications apportées à.
Retours
Jetable qui peut annuler l’abonnement tôt.
Remarques
Doit être appelé sur le thread principal.