Table of Contents

Class CollectionStatsResult.IndexSizesResult

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

Represents a collection of index sizes.

public class CollectionStatsResult.IndexSizesResult
Inheritance
CollectionStatsResult.IndexSizesResult
Inherited Members
Extension Methods

Constructors

IndexSizesResult(BsonDocument)

Initializes a new instance of the IndexSizesResult class.

public IndexSizesResult(BsonDocument indexSizes)

Parameters

indexSizes BsonDocument

The index sizes document.

Properties

Count

Gets the count of indexes.

public int Count { get; }

Property Value

int

this[string]

Gets the size of an index.

public long this[string indexName] { get; }

Parameters

indexName string

The name of the index.

Property Value

long

The size of the index.

Keys

Gets the names of the indexes.

public IEnumerable<string> Keys { get; }

Property Value

IEnumerable<string>

Values

Gets the sizes of the indexes.

public IEnumerable<long> Values { get; }

Property Value

IEnumerable<long>

Methods

ContainsKey(string)

Tests whether the results contain the size of an index.

public bool ContainsKey(string indexName)

Parameters

indexName string

The name of the index.

Returns

bool

True if the results contain the size of the index.