MongoDbShardKeyInfo Class

Definition

Describes a MongoDB shard key

public class MongoDbShardKeyInfo
type MongoDbShardKeyInfo = class
Public Class MongoDbShardKeyInfo
Inheritance
MongoDbShardKeyInfo

Constructors

Name Description
MongoDbShardKeyInfo()

Initializes a new instance of the MongoDbShardKeyInfo class.

MongoDbShardKeyInfo(IList<MongoDbShardKeyField>, Boolean)

Initializes a new instance of the MongoDbShardKeyInfo class.

Properties

Name Description
Fields

Gets or sets the fields within the shard key

IsUnique

Gets or sets whether the shard key is unique

Methods

Name Description
Validate()

Validate the object.

Applies to