Click or drag to resize
BsonClassMapTClass Methods

The BsonClassMapTClass generic type exposes the following members.

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 a hash function for a particular type.
(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