ShardMap.TryGetShard(ShardLocation, Shard) Method

Definition

Tries to obtains the shard for the specified location.

public bool TryGetShard (Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardLocation location, out Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Shard shard);
member this.TryGetShard : Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardLocation *  -> bool
Public Function TryGetShard (location As ShardLocation, ByRef shard As Shard) As Boolean

Parameters

location
ShardLocation

Location of the shard.

shard
Shard

Shard which has the specified location.

Returns

System.Boolean

true if shard with specified location is found, false otherwise.

Applies to