IAsyncState.TryGet(AsyncStateToken, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to get the stored async context from the state.
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
Parameters
- token
- AsyncStateToken
The token representing the state to extract.
- value
- Object
Receives the value associated with the specified token, if the context is initialized;
otherwise, the default value for the type of the value
parameter.
Returns
true
if the context is initialized; otherwise, false
.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.