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.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
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 (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFreeze
Freezes this instance.
Public methodGetHashCode (Inherited from Object.)
Public methodGetSerializer
Gets the serializer.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (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 (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