BsonClassMap Class |
Namespace: MongoDB.Bson.Serialization
The BsonClassMap type exposes the following members.
Name | Description | |
---|---|---|
BsonClassMap(Type) |
Initializes a new instance of the BsonClassMap class.
| |
BsonClassMap(Type, BsonClassMap) |
Initializes a new instance of the BsonClassMap class.
|
Name | Description | |
---|---|---|
AddKnownType |
Adds a known type to the class map.
| |
AutoMap |
Automaps the class.
| |
CreateInstance |
Creates an instance of the class.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Freeze |
Freezes the class map.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetMemberInfoType |
Gets the type of a member.
| |
GetMemberMap |
Gets a member map (only considers members declared in this class).
| |
GetMemberMapForElement |
Gets the member map for a BSON element.
| |
GetRegisteredClassMaps |
Gets all registered class maps.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsClassMapRegistered |
Checks whether a class map is registered for a type.
| |
LookupClassMap |
Looks up a class map (will AutoMap the class if no class map is registered).
| |
MapConstructor(ConstructorInfo) |
Creates a creator map for a constructor and adds it to the class map.
| |
MapConstructor(ConstructorInfo, String) |
Creates a creator map for a constructor and adds it to the class map.
| |
MapCreator(Delegate) |
Creates a creator map and adds it to the class.
| |
MapCreator(Delegate, String) |
Creates a creator map and adds it to the class.
| |
MapExtraElementsField |
Creates a member map for the extra elements field and adds it to the class map.
| |
MapExtraElementsMember |
Creates a member map for the extra elements member and adds it to the class map.
| |
MapExtraElementsProperty |
Creates a member map for the extra elements property and adds it to the class map.
| |
MapFactoryMethod(MethodInfo) |
Creates a creator map for a factory method and adds it to the class.
| |
MapFactoryMethod(MethodInfo, String) |
Creates a creator map for a factory method and adds it to the class.
| |
MapField |
Creates a member map for a field and adds it to the class map.
| |
MapIdField |
Creates a member map for the Id field and adds it to the class map.
| |
MapIdMember |
Creates a member map for the Id member and adds it to the class map.
| |
MapIdProperty |
Creates a member map for the Id property and adds it to the class map.
| |
MapMember |
Creates a member map for a member and adds it to the class map.
| |
MapProperty |
Creates a member map for a property and adds it to the class map.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RegisterClassMap(BsonClassMap) |
Registers a class map.
| |
RegisterClassMapTClass |
Creates and registers a class map.
| |
RegisterClassMapTClass(ActionBsonClassMapTClass) |
Creates and registers a class map.
| |
Reset |
Resets the class map back to its initial state.
| |
SetCreator |
Sets the creator for the object.
| |
SetDiscriminator |
Sets the discriminator.
| |
SetDiscriminatorIsRequired |
Sets whether a discriminator is required when serializing this class.
| |
SetExtraElementsMember |
Sets the member map of the member used to hold extra elements.
| |
SetIdMember |
Sets the Id member.
| |
SetIgnoreExtraElements |
Sets whether extra elements should be ignored when deserializing.
| |
SetIgnoreExtraElementsIsInherited |
Sets whether the IgnoreExtraElements value should be inherited by derived classes.
| |
SetIsRootClass |
Sets whether this class is a root class.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnmapConstructor |
Removes a creator map for a constructor from the class map.
| |
UnmapFactoryMethod |
Removes a creator map for a factory method from the class map.
| |
UnmapField |
Removes the member map for a field from the class map.
| |
UnmapMember |
Removes a member map from the class map.
| |
UnmapProperty |
Removes the member map for a property from the class map.
|
Name | Description | |
---|---|---|
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |
Name | Description | |
---|---|---|
AllMemberMaps |
Gets all the member maps (including maps for inherited members).
| |
BaseClassMap |
Gets the base class map.
| |
ClassType |
Gets the class type.
| |
ConventionPack |
Gets the conventions used for auto mapping.
| |
CreatorMaps |
Gets the constructor maps.
| |
DeclaredMemberMaps |
Gets the declared member maps (only for members declared in this class).
| |
Discriminator |
Gets the discriminator.
| |
DiscriminatorIsRequired |
Gets whether a discriminator is required when serializing this class.
| |
ExtraElementsMemberMap |
Gets the member map of the member used to hold extra elements.
| |
HasCreatorMaps |
Gets whether this class map has any creator maps.
| |
HasRootClass |
Gets whether this class has a root class ancestor.
| |
IdMemberMap |
Gets the Id member map (null if none).
| |
IgnoreExtraElements |
Gets whether extra elements should be ignored when deserializing.
| |
IgnoreExtraElementsIsInherited |
Gets whether the IgnoreExtraElements value should be inherited by derived classes.
| |
IsAnonymous |
Gets whether this class is anonymous.
| |
IsFrozen |
Gets whether the class map is frozen.
| |
IsRootClass |
Gets whether this class is a root class.
| |
KnownTypes |
Gets the known types of this class.
|