MongoDB.MapReduce.Dispose C# (CSharp) Метод

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void
        public void Dispose()
        {
            if(Command.KeepTemp || _disposing)
                return;

            _disposing = true;

            if(Result == null || Result.Ok == false)
                return; //Nothing to do.

            //Drop the temporary collection that was created as part of results.
            if (Result.CollectionName != null)
                _database.Metadata.DropCollection(Result.CollectionName);
        }