Поделиться через


MongoDBCollectionInfo Class

Definition

Describes a supported collection within a MongoDB database.

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

Properties

AverageDocumentSize

The average document size, or -1 if the average size is unknown.

(Inherited from MongoDBObjectInfo)
DatabaseName

The name of the database containing the collection.

DataSize

The estimated total data size, in bytes, or -1 if the size is unknown.

(Inherited from MongoDBObjectInfo)
DocumentCount

The estimated total number of documents, or -1 if the document count is unknown.

(Inherited from MongoDBObjectInfo)
IsCapped

Whether the collection is a capped collection (i.e. whether it has a fixed size and acts like a circular buffer).

IsSystemCollection

Whether the collection is system collection.

IsView

Whether the collection is a view of another collection.

Name

The unqualified name of the database or collection.

(Inherited from MongoDBObjectInfo)
QualifiedName

The qualified name of the database or collection. For a collection, this is the database-qualified name.

(Inherited from MongoDBObjectInfo)
ShardKey

The shard key on the collection, or null if the collection is not sharded.

SupportsSharding

Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if necessary.

ViewOf

The name of the collection that this is a view of, if IsView is true.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MongoDBCollectionInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MongoDBCollectionInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<MongoDBObjectInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from MongoDBObjectInfo)
IJsonModel<MongoDBObjectInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from MongoDBObjectInfo)
IPersistableModel<MongoDBCollectionInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBCollectionInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MongoDBCollectionInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<MongoDBObjectInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from MongoDBObjectInfo)
IPersistableModel<MongoDBObjectInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from MongoDBObjectInfo)
IPersistableModel<MongoDBObjectInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from MongoDBObjectInfo)

Applies to