Class GetIndexesResult
Represents the result of GetIndexes.
public class GetIndexesResult : IEnumerable<IndexInfo>, IEnumerable
- Inheritance
-
GetIndexesResult
- Implements
- Inherited Members
- Extension Methods
Constructors
GetIndexesResult(BsonDocument[])
Initializes a new instance of the GetIndexesResult class.
public GetIndexesResult(BsonDocument[] documents)
Parameters
documents
BsonDocument[]The raw documents containing the information about the indexes.
Properties
Count
Gets the count of indexes.
public int Count { get; }
Property Value
this[int]
Gets the IndexInfo at the specified index.
public IndexInfo this[int index] { get; }
Parameters
index
intThe zero-based index of the IndexInfo to get.
Property Value
- IndexInfo
An IndexInfo.
RawDocuments
Gets the raw BSON documents containing the information about the indexes.
public IEnumerable<BsonDocument> RawDocuments { get; }