Table of Contents

Class ValidateCollectionResult

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

Represents the results of a validate collection command.

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

Constructors

ValidateCollectionResult(BsonDocument)

Initializes a new instance of the ValidateCollectionResult class.

public ValidateCollectionResult(BsonDocument response)

Parameters

response BsonDocument

The response.

Properties

DataSize

Gets the data size of the collection.

public long DataSize { get; }

Property Value

long

DeletedCount

Gets the number of documents that have been deleted from the collection.

public long DeletedCount { get; }

Property Value

long

DeletedSize

Gets the number of documents that have been deleted from the collection.

public long DeletedSize { get; }

Property Value

long

Errors

Gets the errors returned by validate (or an empty array if there were no errors).

public string[] Errors { get; }

Property Value

string[]

ExtentCount

Gets the number of extents in the collection.

public long ExtentCount { get; }

Property Value

long

FirstExtent

Gets the first extent of the collection.

public string FirstExtent { get; }

Property Value

string

FirstExtentDetails

Gets details of the first extent of the collection.

public ValidateCollectionResult.ExtentDetails FirstExtentDetails { get; }

Property Value

ValidateCollectionResult.ExtentDetails

IndexCount

Gets the number of indexes in the collection.

public int IndexCount { get; }

Property Value

int

IsValid

Gets a value indicating whether the collection is valid.

public bool IsValid { get; }

Property Value

bool

KeysPerIndex

Gets a dictionary containing the number of keys per index.

public Dictionary<string, long> KeysPerIndex { get; }

Property Value

Dictionary<string, long>

LastExtent

Gets the last extent of the collection.

public string LastExtent { get; }

Property Value

string

LastExtentSize

Gets the size of the last extent of the collection.

public long LastExtentSize { get; }

Property Value

long

Namespace

Gets the namespace.

public string Namespace { get; }

Property Value

string

Padding

Gets the padding factor of the collection.

public double Padding { get; }

Property Value

double

RecordCount

Gets the number of records in the collection.

public long RecordCount { get; }

Property Value

long

ResultString

Gets the result string.

public string ResultString { get; }

Property Value

string

Warning

Gets any warning returned by the validate command (or null if there is no warning).

public string Warning { get; }

Property Value

string