Click or drag to resize

BsonSerializationInfoCreateWithPath Method

Creates a new instance of the BsonSerializationinfo class with an element path instead of an element name.

Namespace:  MongoDB.Bson.Serialization
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public static BsonSerializationInfo CreateWithPath(
	IEnumerable<string> elementPath,
	IBsonSerializer serializer,
	Type nominalType
)

Parameters

elementPath
Type: System.Collections.GenericIEnumerableString
The element path.
serializer
Type: MongoDB.Bson.SerializationIBsonSerializer
The serializer.
nominalType
Type: SystemType
The nominal type.

Return Value

Type: BsonSerializationInfo
A BsonSerializationInfo.
See Also