다음을 통해 공유


DataMigrationMongoDBShardKeySetting Class

Definition

Describes a MongoDB shard key.

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

Constructors

DataMigrationMongoDBShardKeySetting(IEnumerable<DataMigrationMongoDBShardKeyField>)

Initializes a new instance of DataMigrationMongoDBShardKeySetting.

Properties

Fields

The fields within the shard key.

IsUnique

Whether the shard key is unique.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DataMigrationMongoDBShardKeySetting>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DataMigrationMongoDBShardKeySetting>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataMigrationMongoDBShardKeySetting>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DataMigrationMongoDBShardKeySetting>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DataMigrationMongoDBShardKeySetting>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to