MongoDB.Driver.Collection.Delete C# (CSharp) Метод

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

Deletes documents from the collection according to the spec.
An empty document will match all documents in the collection and effectively truncate it.
public Delete ( Document selector ) : void
selector Document
Результат void
        public void Delete(Document selector)
        {
            DeleteMessage dm = new DeleteMessage();
            dm.FullCollectionName = this.FullName;
            dm.Selector = selector;
            try{
                this.connection.SendMessage(dm);
            }catch(IOException ioe){
                throw new MongoCommException("Could not delete document, communication failure", this.connection,ioe);
            }
        }

Same methods

Collection::Delete ( Document selector, bool safemode ) : void