BsonMemberMap Class |
Namespace: MongoDB.Bson.Serialization
The BsonMemberMap type exposes the following members.
Name | Description | |
---|---|---|
BsonMemberMap |
Initializes a new instance of the BsonMemberMap class.
|
Name | Description | |
---|---|---|
ClassMap |
Gets the class map that this member map belongs to.
| |
DefaultValue |
Gets the default value.
| |
ElementName |
Gets the name of the element.
| |
Getter |
Gets the getter function.
| |
IdGenerator |
Gets the Id generator.
| |
IgnoreIfDefault |
Gets whether default values should be ignored when serialized.
| |
IgnoreIfNull |
Gets whether null values should be ignored when serialized.
| |
IsDefaultValueSpecified |
Gets whether a default value was specified.
| |
IsReadOnly |
Gets whether the member is readonly.
| |
IsRequired |
Gets whether an element is required for this member when deserialized.
| |
MemberInfo |
Gets the member info.
| |
MemberName |
Gets the name of the member.
| |
MemberType |
Gets the type of the member.
| |
MemberTypeIsBsonValue |
Gets whether the member type is a BsonValue.
| |
Order |
Gets the serialization order.
| |
Setter |
Gets the setter function.
| |
ShouldSerializeMethod |
Gets the method that will be called to determine whether the member should be serialized.
|
Name | Description | |
---|---|---|
ApplyDefaultValue |
Applies the default value to the member of an object.
| |
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 this instance.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetSerializer |
Gets the serializer.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Reset |
Resets the member map back to its initial state.
| |
SetDefaultValue(FuncObject) |
Sets the default value creator.
| |
SetDefaultValue(Object) |
Sets the default value.
| |
SetElementName |
Sets the name of the element.
| |
SetIdGenerator |
Sets the Id generator.
| |
SetIgnoreIfDefault |
Sets whether default values should be ignored when serialized.
| |
SetIgnoreIfNull |
Sets whether null values should be ignored when serialized.
| |
SetIsRequired |
Sets whether an element is required for this member when deserialized
| |
SetOrder |
Sets the serialization order.
| |
SetSerializer |
Sets the serializer.
| |
SetShouldSerializeMethod |
Sets the method that will be called to determine whether the member should be serialized.
| |
ShouldSerialize |
Determines whether a value should be serialized
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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.) |