PartitionSelector Class
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.
This is a helper class for selecting partitions.
[System.Serializable]
public class PartitionSelector
[<System.Serializable>]
type PartitionSelector = class
Public Class PartitionSelector
- Inheritance
-
PartitionSelector
- Attributes
Remarks
It allows the user to select partitions to be targeted by the testability APIs. The selection can be a particular partition of a service based on the Id or Key or a random partition of a service.
Methods
Equals(Object) |
Compares whether two PartitionSelectors are the same. |
GetHashCode() |
Calls the base GetHashCode() |
PartitionIdOf(Uri, Guid) |
Selects a partition for the service given the PartitionId. |
PartitionKeyOf(Uri, Int64) |
Selects a partition for the service to which the specified partition key belongs. |
PartitionKeyOf(Uri, String) |
Selects a partition for the service with the specified PartitionName. |
RandomOf(Uri) |
Selects a random partition for given service. |
SingletonOf(Uri) |
Selects the singleton partition for a service. |
ToString() |
String representation of the partition selector. |
Applies to
Azure SDK for .NET