FilterDefinitionBuilderTDocumentElemMatchTItem Method (FieldDefinitionTDocument, FilterDefinitionTItem) |
Creates an element match filter for an array field.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax public FilterDefinition<TDocument> ElemMatch<TItem>(
FieldDefinition<TDocument> field,
FilterDefinition<TItem> filter
)
Public Function ElemMatch(Of TItem) (
field As FieldDefinition(Of TDocument),
filter As FilterDefinition(Of TItem)
) As FilterDefinition(Of TDocument)
member ElemMatch :
field : FieldDefinition<'TDocument> *
filter : FilterDefinition<'TItem> -> FilterDefinition<'TDocument>
Parameters
- field
- Type: MongoDB.DriverFieldDefinitionTDocument
The field. - filter
- Type: MongoDB.DriverFilterDefinitionTItem
The filter.
Type Parameters
- TItem
- The type of the item.
Return Value
Type:
FilterDefinitionTDocumentAn element match filter.
See Also