Click or drag to resize

BsonClassMapTClass Class

Represents a mapping between a class and a BSON document.
Inheritance Hierarchy
SystemObject
  MongoDB.Bson.SerializationBsonClassMap
    MongoDB.Bson.SerializationBsonClassMapTClass

Namespace:  MongoDB.Bson.Serialization
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public class BsonClassMap<TClass> : BsonClassMap

Type Parameters

TClass
The class.

The BsonClassMapTClass type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAllMemberMaps
Gets all the member maps (including maps for inherited members).
(Inherited from BsonClassMap.)
Public propertyBaseClassMap
Gets the base class map.
(Inherited from BsonClassMap.)
Public propertyClassType
Gets the class type.
(Inherited from BsonClassMap.)
Public propertyConventionPack
Gets the conventions used for auto mapping.
(Inherited from BsonClassMap.)
Public propertyCreatorMaps
Gets the constructor maps.
(Inherited from BsonClassMap.)
Public propertyDeclaredMemberMaps
Gets the declared member maps (only for members declared in this class).
(Inherited from BsonClassMap.)
Public propertyDiscriminator
Gets the discriminator.
(Inherited from BsonClassMap.)
Public propertyDiscriminatorIsRequired
Gets whether a discriminator is required when serializing this class.
(Inherited from BsonClassMap.)
Public propertyExtraElementsMemberMap
Gets the member map of the member used to hold extra elements.
(Inherited from BsonClassMap.)
Public propertyHasCreatorMaps
Gets whether this class map has any creator maps.
(Inherited from BsonClassMap.)
Public propertyHasRootClass
Gets whether this class has a root class ancestor.
(Inherited from BsonClassMap.)
Public propertyIdMemberMap
Gets the Id member map (null if none).
(Inherited from BsonClassMap.)
Public propertyIgnoreExtraElements
Gets whether extra elements should be ignored when deserializing.
(Inherited from BsonClassMap.)
Public propertyIgnoreExtraElementsIsInherited
Gets whether the IgnoreExtraElements value should be inherited by derived classes.
(Inherited from BsonClassMap.)
Public propertyIsAnonymous
Gets whether this class is anonymous.
(Inherited from BsonClassMap.)
Public propertyIsFrozen
Gets whether the class map is frozen.
(Inherited from BsonClassMap.)
Public propertyIsRootClass
Gets whether this class is a root class.
(Inherited from BsonClassMap.)
Public propertyKnownTypes
Gets the known types of this class.
(Inherited from BsonClassMap.)
Top
Methods
  NameDescription
Public methodAddKnownType
Adds a known type to the class map.
(Inherited from BsonClassMap.)
Public methodAutoMap
Automaps the class.
(Inherited from BsonClassMap.)
Public methodCreateInstance
Creates an instance.
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 the class map.
(Inherited from BsonClassMap.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMemberMap(String)
Gets a member map (only considers members declared in this class).
(Inherited from BsonClassMap.)
Public methodGetMemberMapTMember(ExpressionFuncTClass, TMember)
Gets a member map.
Public methodGetMemberMapForElement
Gets the member map for a BSON element.
(Inherited from BsonClassMap.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMapConstructor(ConstructorInfo)
Creates a creator map for a constructor and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapConstructor(ConstructorInfo, String)
Creates a creator map for a constructor and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapCreator(Delegate)
Creates a creator map and adds it to the class.
(Inherited from BsonClassMap.)
Public methodMapCreator(ExpressionFuncTClass, TClass)
Creates a creator map and adds it to the class map.
Public methodMapCreator(Delegate, String)
Creates a creator map and adds it to the class.
(Inherited from BsonClassMap.)
Public methodMapExtraElementsField(String)
Creates a member map for the extra elements field and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapExtraElementsFieldTMember(ExpressionFuncTClass, TMember)
Creates a member map for the extra elements field and adds it to the class map.
Public methodMapExtraElementsMember(MemberInfo)
Creates a member map for the extra elements member and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapExtraElementsMemberTMember(ExpressionFuncTClass, TMember)
Creates a member map for the extra elements member and adds it to the class map.
Public methodMapExtraElementsProperty(String)
Creates a member map for the extra elements property and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapExtraElementsPropertyTMember(ExpressionFuncTClass, TMember)
Creates a member map for the extra elements property and adds it to the class map.
Public methodMapFactoryMethod(MethodInfo)
Creates a creator map for a factory method and adds it to the class.
(Inherited from BsonClassMap.)
Public methodMapFactoryMethod(MethodInfo, String)
Creates a creator map for a factory method and adds it to the class.
(Inherited from BsonClassMap.)
Public methodMapField(String)
Creates a member map for a field and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapFieldTMember(ExpressionFuncTClass, TMember)
Creates a member map for a field and adds it to the class map.
Public methodMapIdField(String)
Creates a member map for the Id field and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapIdFieldTMember(ExpressionFuncTClass, TMember)
Creates a member map for the Id field and adds it to the class map.
Public methodMapIdMember(MemberInfo)
Creates a member map for the Id member and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapIdMemberTMember(ExpressionFuncTClass, TMember)
Creates a member map for the Id member and adds it to the class map.
Public methodMapIdProperty(String)
Creates a member map for the Id property and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapIdPropertyTMember(ExpressionFuncTClass, TMember)
Creates a member map for the Id property and adds it to the class map.
Public methodMapMember(MemberInfo)
Creates a member map for a member and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapMemberTMember(ExpressionFuncTClass, TMember)
Creates a member map and adds it to the class map.
Public methodMapProperty(String)
Creates a member map for a property and adds it to the class map.
(Inherited from BsonClassMap.)
Public methodMapPropertyTMember(ExpressionFuncTClass, TMember)
Creates a member map for the Id property and adds it to the class map.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Resets the class map back to its initial state.
(Inherited from BsonClassMap.)
Public methodSetCreator
Sets the creator for the object.
(Inherited from BsonClassMap.)
Public methodSetDiscriminator
Sets the discriminator.
(Inherited from BsonClassMap.)
Public methodSetDiscriminatorIsRequired
Sets whether a discriminator is required when serializing this class.
(Inherited from BsonClassMap.)
Public methodSetExtraElementsMember
Sets the member map of the member used to hold extra elements.
(Inherited from BsonClassMap.)
Public methodSetIdMember
Sets the Id member.
(Inherited from BsonClassMap.)
Public methodSetIgnoreExtraElements
Sets whether extra elements should be ignored when deserializing.
(Inherited from BsonClassMap.)
Public methodSetIgnoreExtraElementsIsInherited
Sets whether the IgnoreExtraElements value should be inherited by derived classes.
(Inherited from BsonClassMap.)
Public methodSetIsRootClass
Sets whether this class is a root class.
(Inherited from BsonClassMap.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnmapConstructor
Removes a creator map for a constructor from the class map.
(Inherited from BsonClassMap.)
Public methodUnmapFactoryMethod
Removes a creator map for a factory method from the class map.
(Inherited from BsonClassMap.)
Public methodUnmapField(String)
Removes the member map for a field from the class map.
(Inherited from BsonClassMap.)
Public methodUnmapFieldTMember(ExpressionFuncTClass, TMember)
Removes the member map for a field from the class map.
Public methodUnmapMember(MemberInfo)
Removes a member map from the class map.
(Inherited from BsonClassMap.)
Public methodUnmapMemberTMember(ExpressionFuncTClass, TMember)
Removes a member map from the class map.
Public methodUnmapProperty(String)
Removes the member map for a property from the class map.
(Inherited from BsonClassMap.)
Public methodUnmapPropertyTMember(ExpressionFuncTClass, TMember)
Removes a member map for a property from the class map.
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