IDurableEntityClient.ReadEntityStateAsync<T> 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 read the current state of an entity. Returns default(T
) if the entity does not exist.
public System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityStateResponse<T>> ReadEntityStateAsync<T> (Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId entityId, string taskHubName = default, string connectionName = default);
abstract member ReadEntityStateAsync : Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityId * string * string -> System.Threading.Tasks.Task<Microsoft.Azure.WebJobs.Extensions.DurableTask.EntityStateResponse<'T>>
Public Function ReadEntityStateAsync(Of T) (entityId As EntityId, Optional taskHubName As String = Nothing, Optional connectionName As String = Nothing) As Task(Of EntityStateResponse(Of T))
Type Parameters
- T
The JSON-serializable type of the entity.
Parameters
- entityId
- EntityId
The target entity.
- taskHubName
- String
The TaskHubName of the target entity.
- connectionName
- String
The name of the connection string associated with taskHubName
.
Returns
a response containing the current state of the entity.
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per