Method Dispose NamespaceMongoDB.Driver AssemblyMongoDB.Driver.dll Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. public void Dispose()