Tries to obtains the shard for the specified ___location.
Namespace: Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement
Assembly: Microsoft.Azure.SqlDatabase.ElasticScale.Client (in Microsoft.Azure.SqlDatabase.ElasticScale.Client.dll)
Usage
'Usage
Dim instance As ShardMap
Dim ___location As ShardLocation
Dim shard As Shard
Dim returnValue As Boolean
returnValue = instance.TryGetShard(___location, shard)
Syntax
'Declaration
Public Function TryGetShard ( _
___location As ShardLocation, _
<OutAttribute> ByRef shard As Shard _
) As Boolean
public bool TryGetShard (
ShardLocation ___location,
out Shard shard
)
public:
bool TryGetShard (
ShardLocation^ ___location,
[OutAttribute] Shard^% shard
)
public boolean TryGetShard (
ShardLocation ___location,
/** @attribute OutAttribute() */ /** @ref */ Shard shard
)
Parameters
- ___location
Location of the shard.
- shard
Shard which has the specified ___location.
Return Value
true
if shard with specified ___location is found, false
otherwise.
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
ShardMap Class
ShardMap Members
Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement Namespace