次の方法で共有


ShardMapManager.TryGetShardMap Method

Tries to obtains a ShardMap given the name.

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

Usage

'Usage
Dim instance As ShardMapManager
Dim shardMapName As String
Dim shardMap As ShardMap
Dim returnValue As Boolean

returnValue = instance.TryGetShardMap(shardMapName, shardMap)

Syntax

'Declaration
Public Function TryGetShardMap ( _
    shardMapName As String, _
    <OutAttribute> ByRef shardMap As ShardMap _
) As Boolean
public bool TryGetShardMap (
    string shardMapName,
    out ShardMap shardMap
)
public:
bool TryGetShardMap (
    String^ shardMapName, 
    [OutAttribute] ShardMap^% shardMap
)
public boolean TryGetShardMap (
    String shardMapName, 
    /** @attribute OutAttribute() */ /** @ref */ ShardMap shardMap
)

Parameters

  • shardMapName
    Name of shard map.
  • shardMap
    Shard map with the specified name.

Return Value

true if shard map with the specified name was 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

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