Class BsonTimeSpanOptionsAttribute
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
MongoDB.Bson.Serialization.Attributes
Assembly
MongoDB.Bson.dll
Specifies the external representation and related options for this field or property.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class BsonTimeSpanOptionsAttribute : BsonSerializationOptionsAttribute, IBsonMemberMapAttribute
Inheritance
BsonTimeSpanOptionsAttribute
Implements
Inherited Members
Extension Methods
Constructors
BsonTimeSpanOptionsAttribute(BsonType)
Initializes a new instance of the BsonTimeSpanOptionsAttribute class.
BsonTimeSpanOptionsAttribute(BsonType, TimeSpanUnits)
Initializes a new instance of the BsonTimeSpanOptionsAttribute class.
Properties
Gets the external representation.
Gets or sets the TimeSpanUnits.
Methods
Reconfigures the specified serializer by applying this attribute to it.