Table of Contents

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 BsonType

The external representation.

BsonTimeSpanOptionsAttribute(BsonType, TimeSpanUnits)

Initializes a new instance of the BsonTimeSpanOptionsAttribute class.

public BsonTimeSpanOptionsAttribute(BsonType representation, TimeSpanUnits units)

Parameters

representation BsonType

The external representation.

units TimeSpanUnits

The TimeSpanUnits.