Share via


MongoDbShardKeySetting Class

Definition

Describes a MongoDB shard key

public class MongoDbShardKeySetting
type MongoDbShardKeySetting = class
Public Class MongoDbShardKeySetting
Inheritance
MongoDbShardKeySetting

Constructors

MongoDbShardKeySetting()

Initializes a new instance of the MongoDbShardKeySetting class.

MongoDbShardKeySetting(IList<MongoDbShardKeyField>, Boolean)

Initializes a new instance of the MongoDbShardKeySetting class.

Properties

Fields

Gets or sets the fields within the shard key

IsUnique

Gets or sets whether the shard key is unique

Methods

Validate()

Validate the object.

Applies to