Partager via


ShardMapManager.CreateRangeShardMap Method

Create a range based RangeShardMap.

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

Usage

'Usage
Dim instance As ShardMapManager
Dim shardMapName As String
Dim returnValue As RangeShardMap(Of TKey)

returnValue = instance.CreateRangeShardMap(shardMapName)

Syntax

'Declaration
Public Function CreateRangeShardMap(Of TKey) ( _
    shardMapName As String _
) As RangeShardMap(Of TKey)
public RangeShardMap<TKey> CreateRangeShardMap<TKey> (
    string shardMapName
)
public:
generic<typename TKey>
RangeShardMap<TKey>^ CreateRangeShardMap (
    String^ shardMapName
)

GenericParameters

  • TKey
    Type of keys.

Parameters

  • shardMapName
    Name of shard map.

Return Value

Range shard map with the specified name.

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

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