UpdateDefinitionBuilder<TDocument>.Rename Method (FieldDefinition<TDocument>, String) |
Creates a field renaming operator.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntaxpublic UpdateDefinition<TDocument> Rename(
FieldDefinition<TDocument> field,
string newName
)
Public Function Rename (
field As FieldDefinition(Of TDocument),
newName As String
) As UpdateDefinition(Of TDocument)
member Rename :
field : FieldDefinition<'TDocument> *
newName : string -> UpdateDefinition<'TDocument>
Parameters
- field
- Type: MongoDB.Driver.FieldDefinition<TDocument>
The field. - newName
- Type: System.String
The new name.
Return Value
Type:
UpdateDefinition<TDocument>A field rename operator.
See Also