ShardMap.GetShard Method

Obtains the shard for the specified location.

Namespace: Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement
Assembly: Microsoft.Azure.SqlDatabase.ElasticScale.Client (in Microsoft.Azure.SqlDatabase.ElasticScale.Client.dll)

Usage

'Usage
Dim instance As ShardMap
Dim location As ShardLocation
Dim returnValue As Shard

returnValue = instance.GetShard(location)

Syntax

'Declaration
Public Function GetShard ( _
    location As ShardLocation _
) As Shard
public Shard GetShard (
    ShardLocation location
)
public:
Shard^ GetShard (
    ShardLocation^ location
)
public Shard GetShard (
    ShardLocation location
)
public function GetShard (
    location : ShardLocation
) : Shard

Parameters

  • location
    Location of the shard.

Return Value

Shard which has the specified location.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

ShardMap Class
ShardMap Members
Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement Namespace