IWithShardKey.WithShardKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithShardKey(String) |
Specifies a shard key with default partition kind "Hash". |
WithShardKey(String, String) |
Specifies a shard key. |
WithShardKey(String)
Specifies a shard key with default partition kind "Hash".
public Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Update.IUpdate WithShardKey (string shardKey);
abstract member WithShardKey : string -> Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Update.IUpdate
Public Function WithShardKey (shardKey As String) As IUpdate
Parameters
- shardKey
- String
The shard key.
Returns
The next stage of the update.
Applies to
WithShardKey(String, String)
Specifies a shard key.
public Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Update.IUpdate WithShardKey (string shardKey, string partitionKind);
abstract member WithShardKey : string * string -> Microsoft.Azure.Management.CosmosDB.Fluent.MongoCollection.Update.IUpdate
Public Function WithShardKey (shardKey As String, partitionKind As String) As IUpdate
Parameters
- shardKey
- String
The shard key.
- partitionKind
- String
The partition kind, only support "Hash" partition kind in api-version 2019-08-01.
Returns
The next stage of the update.