Share via


MongoDBShardKeyField Class

Definition

Describes a field reference within a MongoDB shard key.

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

Constructors

MongoDBShardKeyField(String, MongoDBShardKeyOrder)

Initializes a new instance of MongoDBShardKeyField.

Properties

Name

The name of the field.

Order

The field ordering.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MongoDBShardKeyField>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MongoDBShardKeyField>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MongoDBShardKeyField>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBShardKeyField>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MongoDBShardKeyField>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to