RangeShardMap.LockMapping Method
Locks the mapping for the specified owner The state of a locked mapping can only be modified by the lock owner.
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 mappingLockToken As MappingLockToken
instance.LockMapping(mapping, mappingLockToken)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId:="1")> _
Public Sub LockMapping ( _
mapping As RangeMapping(Of TKey), _
mappingLockToken As MappingLockToken _
)
[SuppressMessageAttribute("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId="1")]
public void LockMapping (
RangeMapping<TKey> mapping,
MappingLockToken mappingLockToken
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1062:Validate arguments of public methods", MessageId=L"1")]
public:
void LockMapping (
RangeMapping<TKey>^ mapping,
MappingLockToken^ mappingLockToken
)
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId="1") */
public void LockMapping (
RangeMapping<TKey> mapping,
MappingLockToken mappingLockToken
)
SuppressMessageAttribute("Microsoft.Design", "CA1062:Validate arguments of public methods", MessageId="1")
public function LockMapping (
mapping : RangeMapping<TKey>,
mappingLockToken : MappingLockToken
)
Parameters
- mapping
Input range mapping.
- mappingLockToken
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