Constructor BsonElement NamespaceMongoDB.Bson AssemblyMongoDB.Bson.dll BsonElement(string, BsonValue) Initializes a new instance of the BsonElement class. public BsonElement(string name, BsonValue value) Parameters name string The name of the element. value BsonValue The value of the element.