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.

Properties

DataSize

Gets the data size of the collection.

DeletedCount

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

DeletedSize

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

Errors

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

ExtentCount

Gets the number of extents in the collection.

FirstExtent

Gets the first extent of the collection.

FirstExtentDetails

Gets details of the first extent of the collection.

IndexCount

Gets the number of indexes in the collection.

IsValid

Gets a value indicating whether the collection is valid.

KeysPerIndex

Gets a dictionary containing the number of keys per index.

LastExtent

Gets the last extent of the collection.

LastExtentSize

Gets the size of the last extent of the collection.

Namespace

Gets the namespace.

Padding

Gets the padding factor of the collection.

RecordCount

Gets the number of records in the collection.

ResultString

Gets the result string.

Warning

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