Поделиться через


RangeShardMap.CreateRangeMapping Method (RangeMappingCreationInfo)

Creates and adds a range mapping to ShardMap.

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

Usage

'Usage
Dim instance As RangeShardMap(Of TKey)
Dim creationInfo As RangeMappingCreationInfo(Of TKey)
Dim returnValue As RangeMapping(Of TKey)

returnValue = instance.CreateRangeMapping(creationInfo)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId:="0")> _
Public Function CreateRangeMapping ( _
    creationInfo As RangeMappingCreationInfo(Of TKey) _
) As RangeMapping(Of TKey)
[SuppressMessageAttribute("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId="0")] 
public RangeMapping<TKey> CreateRangeMapping (
    RangeMappingCreationInfo<TKey> creationInfo
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1062:Validate arguments of public methods", MessageId=L"0")] 
public:
RangeMapping<TKey>^ CreateRangeMapping (
    RangeMappingCreationInfo<TKey>^ creationInfo
)
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId="0") */ 
public RangeMapping<TKey> CreateRangeMapping (
    RangeMappingCreationInfo<TKey> creationInfo
)
SuppressMessageAttribute("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId="0") 
public function CreateRangeMapping (
    creationInfo : RangeMappingCreationInfo<TKey>
) : RangeMapping<TKey>

Parameters

  • creationInfo
    Information about mapping to be added.

Return Value

Newly created mapping.

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

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