Click or drag to resize

BsonMemberMap Class

Represents the mapping between a field or property and a BSON element.
Inheritance Hierarchy
SystemObject
  MongoDB.Bson.SerializationBsonMemberMap

Namespace:  MongoDB.Bson.Serialization
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public class BsonMemberMap

The BsonMemberMap type exposes the following members.

Constructors
  NameDescription
Public methodBsonMemberMap
Initializes a new instance of the BsonMemberMap class.
Top
Properties
  NameDescription
Public propertyClassMap
Gets the class map that this member map belongs to.
Public propertyDefaultValue
Gets the default value.
Public propertyElementName
Gets the name of the element.
Public propertyGetter
Gets the getter function.
Public propertyIdGenerator
Gets the Id generator.
Public propertyIgnoreIfDefault
Gets whether default values should be ignored when serialized.
Public propertyIgnoreIfNull
Gets whether null values should be ignored when serialized.
Public propertyIsDefaultValueSpecified
Gets whether a default value was specified.
Public propertyIsReadOnly
Gets whether the member is readonly.
Public propertyIsRequired
Gets whether an element is required for this member when deserialized.
Public propertyMemberInfo
Gets the member info.
Public propertyMemberName
Gets the name of the member.
Public propertyMemberType
Gets the type of the member.
Public propertyMemberTypeIsBsonValue
Gets whether the member type is a BsonValue.
Public propertyOrder
Gets the serialization order.
Public propertySetter
Gets the setter function.
Public propertyShouldSerializeMethod
Gets the method that will be called to determine whether the member should be serialized.
Top
Methods
  NameDescription
Public methodApplyDefaultValue
Applies the default value to the member of an object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFreeze
Freezes this instance.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetSerializer
Gets the serializer.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Resets the member map back to its initial state.
Public methodSetDefaultValue(FuncObject)
Sets the default value creator.
Public methodSetDefaultValue(Object)
Sets the default value.
Public methodSetElementName
Sets the name of the element.
Public methodSetIdGenerator
Sets the Id generator.
Public methodSetIgnoreIfDefault
Sets whether default values should be ignored when serialized.
Public methodSetIgnoreIfNull
Sets whether null values should be ignored when serialized.
Public methodSetIsRequired
Sets whether an element is required for this member when deserialized
Public methodSetOrder
Sets the serialization order.
Public methodSetSerializer
Sets the serializer.
Public methodSetShouldSerializeMethod
Sets the method that will be called to determine whether the member should be serialized.
Public methodShouldSerialize
Determines whether a value should be serialized
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also