Bagikan melalui


RangeShardMap.GetMappingLockOwner Method

Gets the lock owner id of the specified 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 mapping As RangeMapping(Of TKey)
Dim returnValue As MappingLockToken

returnValue = instance.GetMappingLockOwner(mapping)

Syntax

'Declaration
Public Function GetMappingLockOwner ( _
    mapping As RangeMapping(Of TKey) _
) As MappingLockToken
public MappingLockToken GetMappingLockOwner (
    RangeMapping<TKey> mapping
)
public:
MappingLockToken^ GetMappingLockOwner (
    RangeMapping<TKey>^ mapping
)
public MappingLockToken GetMappingLockOwner (
    RangeMapping<TKey> mapping
)
public function GetMappingLockOwner (
    mapping : RangeMapping<TKey>
) : MappingLockToken

Parameters

  • mapping
    Input range mapping.

Return Value

An instance of MappingLockToken

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