C# Class MongoDB.Bson.Serialization.Options.TimeSpanSerializationOptions

Represents serialization options for a TimeSpan value.
Inheritance: BsonBaseSerializationOptions
Afficher le fichier Open project: egametang/Egametang Class Usage Examples

Méthodes publiques

Méthode Description
ApplyAttribute ( IBsonSerializer serializer, Attribute attribute ) : void

Apply an attribute to these serialization options and modify the options accordingly.

Clone ( ) : IBsonSerializationOptions

Clones the serialization options.

TimeSpanSerializationOptions ( BsonType representation ) : System

Initializes a new instance of the TimeSpanSerializationOptions class.

TimeSpanSerializationOptions ( BsonType representation, TimeSpanUnits units ) : System

Initializes a new instance of the TimeSpanSerializationOptions class.

Method Details

ApplyAttribute() public méthode

Apply an attribute to these serialization options and modify the options accordingly.
public ApplyAttribute ( IBsonSerializer serializer, Attribute attribute ) : void
serializer IBsonSerializer The serializer that these serialization options are for.
attribute System.Attribute The serialization options attribute.
Résultat void

Clone() public méthode

Clones the serialization options.
public Clone ( ) : IBsonSerializationOptions
Résultat IBsonSerializationOptions

TimeSpanSerializationOptions() public méthode

Initializes a new instance of the TimeSpanSerializationOptions class.
public TimeSpanSerializationOptions ( BsonType representation ) : System
representation BsonType The representation for serialized TimeSpans.
Résultat System

TimeSpanSerializationOptions() public méthode

Initializes a new instance of the TimeSpanSerializationOptions class.
public TimeSpanSerializationOptions ( BsonType representation, TimeSpanUnits units ) : System
representation BsonType The representation for serialized TimeSpans.
units TimeSpanUnits The units for serialized TimeSpans.
Résultat System