BsonMemberMap ClassMongoDB C# Driver API Documentation
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: { version: '1.11.0.92', semver: '1.11.0', commit: '791a16588d4a8b3b118a8b3b57cfa436fec5d3da', commitDate: '2015-12-08 22:55:45' }
Syntax

public class BsonMemberMap

The BsonMemberMap type exposes the following members.

Constructors

  NameDescription
Public methodBsonMemberMap
Initializes a new instance of the BsonMemberMap class.
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 a hash function for a particular type.
(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 methodSetRepresentation
Sets the external representation.
Public methodSetSerializationOptions
Sets the serialization options.
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(Type)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBson(Type, IBsonSerializationOptions, BsonBinaryWriterSettings)Overloaded.
Converts an object to a BSON document byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument(Type)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, IBsonSerializationOptions)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson(Type, IBsonSerializationOptions, JsonWriterSettings)Overloaded.
Converts an object to a JSON string.
(Defined by BsonExtensionMethods.)
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 propertySerializationOptions
Gets the serialization options.
Public propertySetter
Gets the setter function.
Public propertyShouldSerializeMethod
Gets the method that will be called to determine whether the member should be serialized.
Top
See Also

Reference