Share via


RangeShardMap.GetMappingForKey Method

Looks up the key value and returns the corresponding mapping.

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 key As TKey
Dim returnValue As RangeMapping(Of TKey)

returnValue = instance.GetMappingForKey(key)

Syntax

'Declaration
Public Function GetMappingForKey ( _
    key As TKey _
) As RangeMapping(Of TKey)
public RangeMapping<TKey> GetMappingForKey (
    TKey key
)
public:
RangeMapping<TKey>^ GetMappingForKey (
    TKey key
)
public RangeMapping<TKey> GetMappingForKey (
    TKey key
)
public function GetMappingForKey (
    key : TKey
) : RangeMapping<TKey>

Parameters

  • key
    Input key value.

Return Value

Mapping that contains the key value.

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