Method WithNewName
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
WithNewName(string)
Creates a new BsonSerializationInfo object using the elementName provided and copying all other attributes.
public BsonSerializationInfo WithNewName(string elementName)
Parameters
elementName
stringName of the element.
Returns
- BsonSerializationInfo
A new BsonSerializationInfo.