FabricClient.QueryClient.GetPartitionAsync 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.
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
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
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.
See also 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
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Applies to
Azure SDK for .NET