SetFieldDefinitionsBuilderTDocumentSetTField Method (FieldDefinitionTDocument, TField, TField) |
Set a field to a value using a constant.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public ListSetFieldDefinitions<TDocument> Set<TField>(
FieldDefinition<TDocument, TField> field,
TField value
)
Public Function Set(Of TField) (
field As FieldDefinition(Of TDocument, TField),
value As TField
) As ListSetFieldDefinitions(Of TDocument)
member Set :
field : FieldDefinition<'TDocument, 'TField> *
value : 'TField -> ListSetFieldDefinitions<'TDocument>
Parameters
- field
- Type: MongoDB.DriverFieldDefinitionTDocument, TField
The field. - value
- Type: TField
The value.
Type Parameters
- TField
- The type of the field.
Return Value
Type:
ListSetFieldDefinitionsTDocumentAn instance of ListSetFieldDefinitions to which further set field definitions can be added.
See Also