共用方式為


FabricClient.QueryClient.GetPartitionAsync Method

Definition

Overloads

GetPartitionAsync(Guid)

Gets the details for the specified partition.

GetPartitionAsync(Guid, TimeSpan, CancellationToken)

Gets the details for the specified partition.

GetPartitionAsync(Guid)

Gets the details for the specified partition.

public System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList> GetPartitionAsync (Guid partitionId);
member this.GetPartitionAsync : Guid -> System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList>
Public Function GetPartitionAsync (partitionId As Guid) As Task(Of ServicePartitionList)

Parameters

partitionId
Guid

The partition ID of the partition to get details for.

Returns

A task that represents the asynchronous operation.

The returned task contains the list of partitions as ServicePartitionList.

Exceptions

This operation has a timeout of 60 seconds.

See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

Applies to

GetPartitionAsync(Guid, TimeSpan, CancellationToken)

Gets the details for the specified partition.

public System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList> GetPartitionAsync (Guid partitionId, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetPartitionAsync : Guid * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ServicePartitionList>
Public Function GetPartitionAsync (partitionId As Guid, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ServicePartitionList)

Parameters

partitionId
Guid

The partition ID of the partition to get details for.

timeout
TimeSpan

Specifies the duration this operation has to complete before timing out.

cancellationToken
CancellationToken

Propagates notification that operation should be canceled.

Returns

A task that represents the asynchronous operation.

The returned task contains the list of partitions as ServicePartitionList.

Exceptions

Applies to