CSMongo.Commands.MongoDatabaseCommands.Clone C# (CSharp) Méthode

Clone() public static méthode

Clones the current database from the provided host to this server
public static Clone ( MongoDatabase database, string host ) : MethodResult
database MongoDatabase
host string
Résultat CSMongo.Results.MethodResult
        public static MethodResult Clone(MongoDatabase database, string host)
        {
            CommandResponse result = MongoDatabaseCommands.RunCommand(database, new { clone = host });
            return new MethodResult(result.GetDefaultResponse());
        }