Click or drag to resize
BsonClassMap Methods

The BsonClassMap type exposes the following members.

Methods
  NameDescription
Public methodAddKnownType
Adds a known type to the class map.
Public methodAutoMap
Automaps the class.
Public methodCreateInstance
Creates an instance of the class.
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.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetMemberInfoType
Gets the type of a member.
Public methodGetMemberMap
Gets a member map (only considers members declared in this class).
Public methodGetMemberMapForElement
Gets the member map for a BSON element.
Public methodStatic memberGetRegisteredClassMaps
Gets all registered class maps.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsClassMapRegistered
Checks whether a class map is registered for a type.
Public methodStatic memberLookupClassMap
Looks up a class map (will AutoMap the class if no class map is registered).
Public methodMapConstructor(ConstructorInfo)
Creates a creator map for a constructor and adds it to the class map.
Public methodMapConstructor(ConstructorInfo, String)
Creates a creator map for a constructor and adds it to the class map.
Public methodMapCreator(Delegate)
Creates a creator map and adds it to the class.
Public methodMapCreator(Delegate, String)
Creates a creator map and adds it to the class.
Public methodMapExtraElementsField
Creates a member map for the extra elements field and adds it to the class map.
Public methodMapExtraElementsMember
Creates a member map for the extra elements member and adds it to the class map.
Public methodMapExtraElementsProperty
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.
Public methodMapFactoryMethod(MethodInfo, String)
Creates a creator map for a factory method and adds it to the class.
Public methodMapField
Creates a member map for a field and adds it to the class map.
Public methodMapIdField
Creates a member map for the Id field and adds it to the class map.
Public methodMapIdMember
Creates a member map for the Id member and adds it to the class map.
Public methodMapIdProperty
Creates a member map for the Id property and adds it to the class map.
Public methodMapMember
Creates a member map for a member and adds it to the class map.
Public methodMapProperty
Creates a member map for a property and adds it to the class map.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberRegisterClassMap(BsonClassMap)
Registers a class map.
Public methodStatic memberRegisterClassMapTClass
Creates and registers a class map.
Public methodStatic memberRegisterClassMapTClass(ActionBsonClassMapTClass)
Creates and registers a class map.
Public methodReset
Resets the class map back to its initial state.
Public methodSetCreator
Sets the creator for the object.
Public methodSetDiscriminator
Sets the discriminator.
Public methodSetDiscriminatorIsRequired
Sets whether a discriminator is required when serializing this class.
Public methodSetExtraElementsMember
Sets the member map of the member used to hold extra elements.
Public methodSetIdMember
Sets the Id member.
Public methodSetIgnoreExtraElements
Sets whether extra elements should be ignored when deserializing.
Public methodSetIgnoreExtraElementsIsInherited
Sets whether the IgnoreExtraElements value should be inherited by derived classes.
Public methodSetIsRootClass
Sets whether this class is a root class.
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.
Public methodUnmapFactoryMethod
Removes a creator map for a factory method from the class map.
Public methodUnmapField
Removes the member map for a field from the class map.
Public methodUnmapMember
Removes a member map from the class map.
Public methodUnmapProperty
Removes the 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