Table of Contents

Class GetIndexesResult

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

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

int

this[int]

Gets the IndexInfo at the specified index.

public IndexInfo this[int index] { get; }

Parameters

index int

The 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; }

Property Value

IEnumerable<BsonDocument>