| BsonClassMapTClass Methods | 
The BsonClassMapTClass generic type exposes the following members.
 Methods
Methods| Name | Description | |
|---|---|---|
|  | AddKnownType | 
            Adds a known type to the class map.
            (Inherited from BsonClassMap.) | 
|  | AutoMap | 
            Automaps the class.
            (Inherited from BsonClassMap.) | 
|  | CreateInstance | 
            Creates an instance.
             | 
|  | Equals | Determines whether the specified object is equal to the current object.(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.
            (Inherited from BsonClassMap.) | 
|  | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
|  | GetMemberMap(String) | 
            Gets a member map (only considers members declared in this class).
            (Inherited from BsonClassMap.) | 
|  | GetMemberMapTMember(ExpressionFuncTClass, TMember) | 
            Gets a member map.
             | 
|  | GetMemberMapForElement | 
            Gets the member map for a BSON element.
            (Inherited from BsonClassMap.) | 
|  | GetType | Gets the Type of the current instance.(Inherited from Object.) | 
|  | MapConstructor(ConstructorInfo) | 
            Creates a creator map for a constructor and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapConstructor(ConstructorInfo, String) | 
            Creates a creator map for a constructor and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapCreator(Delegate) | 
            Creates a creator map and adds it to the class.
            (Inherited from BsonClassMap.) | 
|  | MapCreator(ExpressionFuncTClass, TClass) | 
            Creates a creator map and adds it to the class map.
             | 
|  | MapCreator(Delegate, String) | 
            Creates a creator map and adds it to the class.
            (Inherited from BsonClassMap.) | 
|  | MapExtraElementsField(String) | 
            Creates a member map for the extra elements field and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapExtraElementsFieldTMember(ExpressionFuncTClass, TMember) | 
            Creates a member map for the extra elements field and adds it to the class map.
             | 
|  | MapExtraElementsMember(MemberInfo) | 
            Creates a member map for the extra elements member and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapExtraElementsMemberTMember(ExpressionFuncTClass, TMember) | 
            Creates a member map for the extra elements member and adds it to the class map.
             | 
|  | MapExtraElementsProperty(String) | 
            Creates a member map for the extra elements property and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapExtraElementsPropertyTMember(ExpressionFuncTClass, TMember) | 
            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.
            (Inherited from BsonClassMap.) | 
|  | MapFactoryMethod(MethodInfo, String) | 
            Creates a creator map for a factory method and adds it to the class.
            (Inherited from BsonClassMap.) | 
|  | MapField(String) | 
            Creates a member map for a field and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapFieldTMember(ExpressionFuncTClass, TMember) | 
            Creates a member map for a field and adds it to the class map.
             | 
|  | MapIdField(String) | 
            Creates a member map for the Id field and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapIdFieldTMember(ExpressionFuncTClass, TMember) | 
            Creates a member map for the Id field and adds it to the class map.
             | 
|  | MapIdMember(MemberInfo) | 
            Creates a member map for the Id member and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapIdMemberTMember(ExpressionFuncTClass, TMember) | 
            Creates a member map for the Id member and adds it to the class map.
             | 
|  | MapIdProperty(String) | 
            Creates a member map for the Id property and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapIdPropertyTMember(ExpressionFuncTClass, TMember) | 
            Creates a member map for the Id property and adds it to the class map.
             | 
|  | MapMember(MemberInfo) | 
            Creates a member map for a member and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapMemberTMember(ExpressionFuncTClass, TMember) | 
            Creates a member map and adds it to the class map.
             | 
|  | MapProperty(String) | 
            Creates a member map for a property and adds it to the class map.
            (Inherited from BsonClassMap.) | 
|  | MapPropertyTMember(ExpressionFuncTClass, TMember) | 
            Creates a member map for the Id property and adds it to the class map.
             | 
|  | MemberwiseClone | Creates a shallow copy of the current Object.(Inherited from Object.) | 
|  | Reset | 
            Resets the class map back to its initial state.
            (Inherited from BsonClassMap.) | 
|  | SetCreator | 
            Sets the creator for the object.
            (Inherited from BsonClassMap.) | 
|  | SetDiscriminator | 
            Sets the discriminator.
            (Inherited from BsonClassMap.) | 
|  | SetDiscriminatorIsRequired | 
            Sets whether a discriminator is required when serializing this class.
            (Inherited from BsonClassMap.) | 
|  | SetExtraElementsMember | 
            Sets the member map of the member used to hold extra elements.
            (Inherited from BsonClassMap.) | 
|  | SetIdMember | 
            Sets the Id member.
            (Inherited from BsonClassMap.) | 
|  | SetIgnoreExtraElements | 
            Sets whether extra elements should be ignored when deserializing.
            (Inherited from BsonClassMap.) | 
|  | SetIgnoreExtraElementsIsInherited | 
            Sets whether the IgnoreExtraElements value should be inherited by derived classes.
            (Inherited from BsonClassMap.) | 
|  | SetIsRootClass | 
            Sets whether this class is a root class.
            (Inherited from BsonClassMap.) | 
|  | ToString | Returns a string that represents the current object.(Inherited from Object.) | 
|  | UnmapConstructor | 
            Removes a creator map for a constructor from the class map.
            (Inherited from BsonClassMap.) | 
|  | UnmapFactoryMethod | 
            Removes a creator map for a factory method from the class map.
            (Inherited from BsonClassMap.) | 
|  | UnmapField(String) | 
            Removes the member map for a field from the class map.
            (Inherited from BsonClassMap.) | 
|  | UnmapFieldTMember(ExpressionFuncTClass, TMember) | 
            Removes the member map for a field from the class map.
             | 
|  | UnmapMember(MemberInfo) | 
            Removes a member map from the class map.
            (Inherited from BsonClassMap.) | 
|  | UnmapMemberTMember(ExpressionFuncTClass, TMember) | 
            Removes a member map from the class map.
             | 
|  | UnmapProperty(String) | 
            Removes the member map for a property from the class map.
            (Inherited from BsonClassMap.) | 
|  | UnmapPropertyTMember(ExpressionFuncTClass, TMember) | 
            Removes a member map for a property from the class map.
             | 
 Extension Methods
Extension Methods| 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.) | 
 See Also
See Also