Constructor BsonTimeSpanOptionsAttribute
- Namespace
- MongoDB.Bson.Serialization.Attributes
- Assembly
- MongoDB.Bson.dll
BsonTimeSpanOptionsAttribute(BsonType)
Initializes a new instance of the BsonTimeSpanOptionsAttribute class.
public BsonTimeSpanOptionsAttribute(BsonType representation)
Parameters
representation
BsonTypeThe external representation.
BsonTimeSpanOptionsAttribute(BsonType, TimeSpanUnits)
Initializes a new instance of the BsonTimeSpanOptionsAttribute class.
public BsonTimeSpanOptionsAttribute(BsonType representation, TimeSpanUnits units)
Parameters
representation
BsonTypeThe external representation.
units
TimeSpanUnitsThe TimeSpanUnits.