Class CollectionStatsResult.IndexSizesResult
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
BsonDocumentThe index sizes document.
Properties
Count
Gets the count of indexes.
public int Count { get; }
Property Value
this[string]
Gets the size of an index.
public long this[string indexName] { get; }
Parameters
indexName
stringThe 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
Values
Gets the sizes of the indexes.
public IEnumerable<long> Values { get; }
Property Value
Methods
ContainsKey(string)
Tests whether the results contain the size of an index.
public bool ContainsKey(string indexName)
Parameters
indexName
stringThe name of the index.
Returns
- bool
True if the results contain the size of the index.