共用方式為


MongoDBIndexConfig Class

Definition

Cosmos DB MongoDB collection index options.

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

Constructors

MongoDBIndexConfig()

Initializes a new instance of MongoDBIndexConfig.

Properties

ExpireAfterSeconds

Expire after seconds.

IsUnique

Is unique or not.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MongoDBIndexConfig>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MongoDBIndexConfig>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MongoDBIndexConfig>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBIndexConfig>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MongoDBIndexConfig>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to