ShardMapManagerFactory.TryGetSqlShardMapManager Method

Definition

Overloads

TryGetSqlShardMapManager(String, ShardMapManagerLoadPolicy, ShardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

TryGetSqlShardMapManager(String, ShardMapManagerLoadPolicy, RetryBehavior, ShardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

TryGetSqlShardMapManager(String, ShardMapManagerLoadPolicy, ShardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

public static bool TryGetSqlShardMapManager (string connectionString, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManagerLoadPolicy loadPolicy, out Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager shardMapManager);
static member TryGetSqlShardMapManager : string * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManagerLoadPolicy *  -> bool
Public Shared Function TryGetSqlShardMapManager (connectionString As String, loadPolicy As ShardMapManagerLoadPolicy, ByRef shardMapManager As ShardMapManager) As Boolean

Parameters

connectionString
String

Connection parameters used for performing operations against shard map manager database(s).

loadPolicy
ShardMapManagerLoadPolicy

Initialization policy.

shardMapManager
ShardMapManager

Shard map manager object used for performing management and read operations for shard maps, shards and shard mappings or null in case shard map manager does not exist.

Returns

Boolean

true if a shard map manager object was created, false otherwise.

Applies to

Product Introduced

TryGetSqlShardMapManager(String, ShardMapManagerLoadPolicy, RetryBehavior, ShardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

public static bool TryGetSqlShardMapManager (string connectionString, Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManagerLoadPolicy loadPolicy, Microsoft.Azure.SqlDatabase.ElasticScale.RetryBehavior retryBehavior, out Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManager shardMapManager);
static member TryGetSqlShardMapManager : string * Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardMapManagerLoadPolicy * Microsoft.Azure.SqlDatabase.ElasticScale.RetryBehavior *  -> bool

Parameters

connectionString
String

Connection parameters used for performing operations against shard map manager database(s).

loadPolicy
ShardMapManagerLoadPolicy

Initialization policy.

retryBehavior
RetryBehavior

Behavior for detecting transient exceptions in the store.

shardMapManager
ShardMapManager

Shard map manager object used for performing management and read operations for shard maps, shards and shard mappings or null in case shard map manager does not exist.

Returns

Boolean

true if a shard map manager object was created, false otherwise.

Applies to

Product Introduced