Class ValidateCollectionResult
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
BsonDocumentThe response.
Properties
DataSize
Gets the data size of the collection.
public long DataSize { get; }
Property Value
DeletedCount
Gets the number of documents that have been deleted from the collection.
public long DeletedCount { get; }
Property Value
DeletedSize
Gets the number of documents that have been deleted from the collection.
public long DeletedSize { get; }
Property Value
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
FirstExtent
Gets the first extent of the collection.
public string FirstExtent { get; }
Property Value
FirstExtentDetails
Gets details of the first extent of the collection.
public ValidateCollectionResult.ExtentDetails FirstExtentDetails { get; }
Property Value
IndexCount
Gets the number of indexes in the collection.
public int IndexCount { get; }
Property Value
IsValid
Gets a value indicating whether the collection is valid.
public bool IsValid { get; }
Property Value
KeysPerIndex
Gets a dictionary containing the number of keys per index.
public Dictionary<string, long> KeysPerIndex { get; }
Property Value
LastExtent
Gets the last extent of the collection.
public string LastExtent { get; }
Property Value
LastExtentSize
Gets the size of the last extent of the collection.
public long LastExtentSize { get; }
Property Value
Namespace
Gets the namespace.
public string Namespace { get; }
Property Value
Padding
Gets the padding factor of the collection.
public double Padding { get; }
Property Value
RecordCount
Gets the number of records in the collection.
public long RecordCount { get; }
Property Value
ResultString
Gets the result string.
public string ResultString { get; }
Property Value
Warning
Gets any warning returned by the validate command (or null if there is no warning).
public string Warning { get; }