Table of Contents

Class DatabaseStatsResult

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

Represents the result of the database stats command.

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

Constructors

DatabaseStatsResult(BsonDocument)

Initializes a new instance of the DatabaseStatsResult class.

public DatabaseStatsResult(BsonDocument response)

Parameters

response BsonDocument

The response.

Properties

AverageObjectSize

Gets the average object size.

public double AverageObjectSize { get; }

Property Value

double

CollectionCount

Gets the collection count.

public int CollectionCount { get; }

Property Value

int

DataSize

Gets the data size.

public long DataSize { get; }

Property Value

long

ExtentCount

Gets the extent count.

public int ExtentCount { get; }

Property Value

int

FileSize

Gets the file size.

public long FileSize { get; }

Property Value

long

IndexCount

Gets the index count.

public int IndexCount { get; }

Property Value

int

IndexSize

Gets the index size.

public long IndexSize { get; }

Property Value

long

ObjectCount

Gets the object count.

public long ObjectCount { get; }

Property Value

long

StorageSize

Gets the storage size.

public long StorageSize { get; }

Property Value

long