Share via


MongoDBShardKeyInfo Class

Definition

Describes a MongoDB shard key.

public class MongoDBShardKeyInfo : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DataMigration.Models.MongoDBShardKeyInfo>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DataMigration.Models.MongoDBShardKeyInfo>
type MongoDBShardKeyInfo = class
    interface IJsonModel<MongoDBShardKeyInfo>
    interface IPersistableModel<MongoDBShardKeyInfo>
Public Class MongoDBShardKeyInfo
Implements IJsonModel(Of MongoDBShardKeyInfo), IPersistableModel(Of MongoDBShardKeyInfo)
Inheritance
MongoDBShardKeyInfo
Implements

Properties

Fields

The fields within the shard key.

IsUnique

Whether the shard key is unique.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MongoDBShardKeyInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MongoDBShardKeyInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MongoDBShardKeyInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBShardKeyInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MongoDBShardKeyInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to