IAsyncState.TryGet(AsyncStateToken, 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.
Tente d’obtenir le contexte asynchrone stocké à partir de l’état.
public:
bool TryGet(Microsoft::Extensions::AsyncState::AsyncStateToken token, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGet(Microsoft.Extensions.AsyncState.AsyncStateToken token, out object? value);
abstract member TryGet : Microsoft.Extensions.AsyncState.AsyncStateToken * obj -> bool
Public Function TryGet (token As AsyncStateToken, ByRef value As Object) As Boolean
Paramètres
- token
- AsyncStateToken
Jeton représentant l’état à extraire.
- value
- Object
Reçoit la valeur associée au jeton spécifié, si le contexte est initialisé ; sinon, la valeur par défaut du type du value paramètre.
Retours
true si le contexte est initialisé ; sinon, false.