BsonTimeSpanOptionsAttribute Class |
Namespace: MongoDB.Bson.Serialization.Attributes
The BsonTimeSpanOptionsAttribute type exposes the following members.
Name | Description | |
---|---|---|
BsonTimeSpanOptionsAttribute(BsonType) |
Initializes a new instance of the BsonTimeSpanOptionsAttribute class.
| |
BsonTimeSpanOptionsAttribute(BsonType, TimeSpanUnits) |
Initializes a new instance of the BsonTimeSpanOptionsAttribute class.
|
Name | Description | |
---|---|---|
Representation |
Gets the external representation.
| |
TypeId | (Inherited from Attribute.) | |
Units |
Gets or sets the TimeSpanUnits.
|
Name | Description | |
---|---|---|
Apply(BsonMemberMap) |
Applies a modification to the member map.
(Inherited from BsonSerializationOptionsAttribute.) | |
Apply(IBsonSerializer) |
Reconfigures the specified serializer by applying this attribute to it.
(Overrides BsonSerializationOptionsAttributeApply(IBsonSerializer).) | |
Equals | (Inherited from Attribute.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Attribute.) | |
GetType | (Inherited from Object.) | |
IsDefaultAttribute | (Inherited from Attribute.) | |
Match | (Inherited from Attribute.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (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.) |