ShardMap.CreateShard Method

Definition

Overloads

CreateShard(ShardCreationInfo)

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

CreateShard(ShardLocation)

Atomically adds a shard to ShardMap using the specified location.

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

Information about shard to be added.

Returns

Shard

A new shard registered with this shard map.

Applies to

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

Location of shard to be added.

Returns

Shard

A shard attached to this shard map.

Applies to