IExternalScopeProvider.ForEachScope<TState> 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.
Exécute le rappel pour chaque objet d’étendue actuellement actif dans l’ordre de création. Tous les rappels sont garantis d’être appelés inline à partir de cette méthode.
public:
generic <typename TState>
void ForEachScope(Action<System::Object ^, TState> ^ callback, TState state);
public void ForEachScope<TState>(Action<object?,TState> callback, TState state);
abstract member ForEachScope : Action<obj, 'State> * 'State -> unit
Public Sub ForEachScope(Of TState) (callback As Action(Of Object, TState), state As TState)
Paramètres de type
- TState
Type d’état à accepter.
Paramètres
- state
- TState
Objet d’état à passer dans le rappel.