ProjectionDefinitionBuilder<TSource>.Exclude Method (FieldDefinition<TSource>) |
Creates a projection that excludes a field.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntaxpublic ProjectionDefinition<TSource> Exclude(
FieldDefinition<TSource> field
)
Public Function Exclude (
field As FieldDefinition(Of TSource)
) As ProjectionDefinition(Of TSource)
member Exclude :
field : FieldDefinition<'TSource> -> ProjectionDefinition<'TSource>
Parameters
- field
- Type: MongoDB.Driver.FieldDefinition<TSource>
The field.
Return Value
Type:
ProjectionDefinition<TSource>
An exclusion projection.
See Also