Table of Contents

Class CollectionStatsResult

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Represents the results of the collection stats command.

[Serializable]
[BsonSerializer(typeof(CommandResultSerializer<CollectionStatsResult>))]
public class CollectionStatsResult : CommandResult
Inheritance
CollectionStatsResult
Inherited Members
Extension Methods

Constructors

CollectionStatsResult(BsonDocument)

Initializes a new instance of the CollectionStatsResult class.

public CollectionStatsResult(BsonDocument response)

Parameters

response BsonDocument

The response.

Properties

AverageObjectSize

Gets the average object size.

public double AverageObjectSize { get; }

Property Value

double

DataSize

Gets the data size.

public long DataSize { get; }

Property Value

long

ExtentCount

Gets the extent count.

public int ExtentCount { get; }

Property Value

int

IndexCount

Gets the index count.

public int IndexCount { get; }

Property Value

int

IndexSizes

Gets the index sizes.

public CollectionStatsResult.IndexSizesResult IndexSizes { get; }

Property Value

CollectionStatsResult.IndexSizesResult

IsCapped

Gets a value indicating whether the collection is capped.

public bool IsCapped { get; }

Property Value

bool

LastExtentSize

Gets the last extent size.

public long LastExtentSize { get; }

Property Value

long

MaxDocuments

Gets the index count.

public long MaxDocuments { get; }

Property Value

long

Namespace

Gets the namespace.

public string Namespace { get; }

Property Value

string

ObjectCount

Gets the object count.

public long ObjectCount { get; }

Property Value

long

PaddingFactor

Gets the padding factor.

public double PaddingFactor { get; }

Property Value

double

StorageSize

Gets the storage size.

public long StorageSize { get; }

Property Value

long

SystemFlags

Gets the system flags.

public CollectionSystemFlags SystemFlags { get; }

Property Value

CollectionSystemFlags

TotalIndexSize

Gets the total index size.

public long TotalIndexSize { get; }

Property Value

long

UserFlags

Gets the user flags.

public CollectionUserFlags UserFlags { get; }

Property Value

CollectionUserFlags