C# Class MongoDB.Bson.Serialization.Attributes.BsonTimeSpanOptionsAttribute

Inheritance: BsonSerializationOptionsAttribute
显示文件 Open project: egametang/Egametang

Public Methods

Method Description
BsonTimeSpanOptionsAttribute ( BsonType representation ) : System

Initializes a new instance of the BsonTimeSpanOptionsAttribute class.

BsonTimeSpanOptionsAttribute ( BsonType representation, TimeSpanUnits units ) : System

Initializes a new instance of the BsonTimeSpanOptionsAttribute class.

Method Details

BsonTimeSpanOptionsAttribute() public method

Initializes a new instance of the BsonTimeSpanOptionsAttribute class.
public BsonTimeSpanOptionsAttribute ( BsonType representation ) : System
representation BsonType The external representation.
return System

BsonTimeSpanOptionsAttribute() public method

Initializes a new instance of the BsonTimeSpanOptionsAttribute class.
public BsonTimeSpanOptionsAttribute ( BsonType representation, TimeSpanUnits units ) : System
representation BsonType The external representation.
units TimeSpanUnits The TimeSpanUnits.
return System