VsShellUtilities.WhenPropertyChanged(IVsShell, Int32, Action<Object>) Méthode

Définition

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 à.

callback
Action<Object>

Rappel à appeler au plus une fois lorsque la propriété change ensuite.

Retours

IDisposable

Jetable qui peut annuler l’abonnement tôt.

Remarques

Doit être appelé sur le thread principal.

S’applique à

Voir aussi