Table of Contents

Class BsonTimeSpanOptionsAttribute

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

Representation

Gets the external representation.

Units

Gets or sets the TimeSpanUnits.

Methods

Apply(IBsonSerializer)

Reconfigures the specified serializer by applying this attribute to it.