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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應