Table of Contents

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 string

Name of the element.

Returns

BsonSerializationInfo

A new BsonSerializationInfo.