ProjectionDefinitionBuilder<TSource>.Include Method (FieldDefinition<TSource>) |
Creates a projection that includes a field.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntaxpublic ProjectionDefinition<TSource> Include(
FieldDefinition<TSource> field
)
Public Function Include (
field As FieldDefinition(Of TSource)
) As ProjectionDefinition(Of TSource)
member Include :
field : FieldDefinition<'TSource> -> ProjectionDefinition<'TSource>
Parameters
- field
- Type: MongoDB.Driver.FieldDefinition<TSource>
The field.
Return Value
Type:
ProjectionDefinition<TSource>
An inclusion projection.
See Also