Compartilhar via


MongoDbShardKeyField Class

Definition

Describes a field reference within a MongoDB shard key

public class MongoDbShardKeyField
type MongoDbShardKeyField = class
Public Class MongoDbShardKeyField
Inheritance
MongoDbShardKeyField

Constructors

MongoDbShardKeyField()

Initializes a new instance of the MongoDbShardKeyField class.

MongoDbShardKeyField(String, String)

Initializes a new instance of the MongoDbShardKeyField class.

Properties

Name

Gets or sets the name of the field

Order

Gets or sets the field ordering Possible values include: 'Forward', 'Reverse', 'Hashed'

Methods

Validate()

Validate the object.

Applies to