public static GetCollectionStats ( MongoDatabase database, string collection ) : |
||
database | MongoDatabase | |
collection | string | |
Résultat |
public static CollectionStatsResult GetCollectionStats(MongoDatabase database, string collection)
{
CommandResponse result = MongoDatabaseCommands.RunCommand(database, new { collstats = collection });
return new CollectionStatsResult(result.GetDefaultResponse());
}