ProjectionDefinitionBuilderTSourceExclude Method (FieldDefinitionTSource) |
Creates a projection that excludes a field.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax public 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.DriverFieldDefinitionTSource
The field.
Return Value
Type:
ProjectionDefinitionTSource
An exclusion projection.
See Also