Table of Contents

Method Unset

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Unset(FieldDefinition<TDocument>)

Creates an unset operator.

public UpdateDefinition<TDocument> Unset(FieldDefinition<TDocument> field)

Parameters

field FieldDefinition<TDocument>

The field.

Returns

UpdateDefinition<TDocument>

An unset operator.

Unset(Expression<Func<TDocument, object>>)

Creates an unset operator.

public UpdateDefinition<TDocument> Unset(Expression<Func<TDocument, object>> field)

Parameters

field Expression<Func<TDocument, object>>

The field.

Returns

UpdateDefinition<TDocument>

An unset operator.