SetFieldDefinitionsBuilderTDocumentSetTField Method (ExpressionFuncTDocument, TField, TField) | 
 
            Set a field to a value using an expression to specify the field and a constant to specify the value.
            
 
    Namespace: 
   MongoDB.Driver
    Assembly:
   MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntaxpublic ListSetFieldDefinitions<TDocument> Set<TField>(
	Expression<Func<TDocument, TField>> field,
	TField value
)
Public Function Set(Of TField) ( 
	field As Expression(Of Func(Of TDocument, TField)),
	value As TField
) As ListSetFieldDefinitions(Of TDocument)
member Set : 
        field : Expression<Func<'TDocument, 'TField>> * 
        value : 'TField -> ListSetFieldDefinitions<'TDocument> 
Parameters
- field
 - Type: System.Linq.ExpressionsExpressionFuncTDocument, 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