Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Ajoute une méthode de rappel appelée en cas de modification de la sélection dans le contexte d'édition.
Espace de noms : Microsoft.Windows.Design.Interaction
Assembly : Microsoft.Windows.Design.Interaction (dans Microsoft.Windows.Design.Interaction.dll)
Syntaxe
'Déclaration
Public Shared Sub Subscribe ( _
context As EditingContext, _
handler As SubscribeContextCallback(Of Selection) _
)
public static void Subscribe(
EditingContext context,
SubscribeContextCallback<Selection> handler
)
public:
static void Subscribe(
EditingContext^ context,
SubscribeContextCallback<Selection^>^ handler
)
static member Subscribe :
context:EditingContext *
handler:SubscribeContextCallback<Selection> -> unit
public static function Subscribe(
context : EditingContext,
handler : SubscribeContextCallback<Selection>
)
Paramètres
- context
Type : Microsoft.Windows.Design.EditingContext
Contexte d'édition intéressant.
- handler
Type : Microsoft.Windows.Design.SubscribeContextCallback<Selection>
Méthode à appeler lorsque la sélection change.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | context ou handler est nullune référence null (Nothing en Visual Basic). |
Sécurité .NET Framework
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.
Voir aussi
Référence
Microsoft.Windows.Design.Interaction, espace de noms