Delen via


MongoDBIndex Class

Definition

Cosmos DB MongoDB collection index key.

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

Constructors

MongoDBIndex()

Initializes a new instance of MongoDBIndex.

Properties

Keys

List of keys for each MongoDB collection in the Azure Cosmos DB service.

Options

Cosmos DB MongoDB collection index key options.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MongoDBIndex>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MongoDBIndex>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MongoDBIndex>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBIndex>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MongoDBIndex>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to