Aracılığıyla paylaş


PartitionSelector.PartitionKeyOf Method

Definition

Overloads

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.

PartitionKeyOf(Uri, Int64)

Selects a partition for the service to which the specified partition key belongs.

public static System.Fabric.PartitionSelector PartitionKeyOf (Uri serviceName, long partitionKey);
static member PartitionKeyOf : Uri * int64 -> System.Fabric.PartitionSelector
Public Shared Function PartitionKeyOf (serviceName As Uri, partitionKey As Long) As PartitionSelector

Parameters

serviceName
Uri

Name of the service whose partition needs to be selected.

partitionKey
Int64

The partition key which belongs to the partition to be selected.

Returns

Constructed PartitionSelector.

Applies to

PartitionKeyOf(Uri, String)

Selects a partition for the service with the specified PartitionName.

public static System.Fabric.PartitionSelector PartitionKeyOf (Uri serviceName, string partitionName);
static member PartitionKeyOf : Uri * string -> System.Fabric.PartitionSelector
Public Shared Function PartitionKeyOf (serviceName As Uri, partitionName As String) As PartitionSelector

Parameters

serviceName
Uri

Name of the service whose partition needs to be selected.

partitionName
String

Name of the partition that needs to be selected.

Returns

Constructed PartitionSelector.

Applies to