ShardMap.CreateShard ShardMap.CreateShard ShardMap.CreateShard Method

Definition

Overloads

CreateShard(ShardCreationInfo) CreateShard(ShardCreationInfo) CreateShard(ShardCreationInfo)

Creates a new shard and registers it with the shard map.

CreateShard(ShardLocation) CreateShard(ShardLocation) CreateShard(ShardLocation)

Atomically adds a shard to ShardMap using the specified location.

CreateShard(ShardCreationInfo) CreateShard(ShardCreationInfo) CreateShard(ShardCreationInfo)

Creates a new shard and registers it with the shard map.

public Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Shard CreateShard (Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardCreationInfo shardCreationArgs);
member this.CreateShard : Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardCreationInfo -> Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Shard
Public Function CreateShard (shardCreationArgs As ShardCreationInfo) As Shard

Parameters

shardCreationArgs
ShardCreationInfo ShardCreationInfo ShardCreationInfo

Information about shard to be added.

Returns

A new shard registered with this shard map.

CreateShard(ShardLocation) CreateShard(ShardLocation) CreateShard(ShardLocation)

Atomically adds a shard to ShardMap using the specified location.

public Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Shard CreateShard (Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardLocation location);
member this.CreateShard : Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.ShardLocation -> Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Shard
Public Function CreateShard (location As ShardLocation) As Shard

Parameters

location
ShardLocation ShardLocation ShardLocation

Location of shard to be added.

Returns

A shard attached to this shard map.

Applies to