C# Класс MongoDB.Bson.Serialization.Options.TimeSpanSerializationOptions

Represents serialization options for a TimeSpan value.
Наследование: BsonBaseSerializationOptions
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

ApplyAttribute() публичный Метод

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.
Результат void

Clone() публичный Метод

Clones the serialization options.
public Clone ( ) : IBsonSerializationOptions
Результат IBsonSerializationOptions

TimeSpanSerializationOptions() публичный Метод

Initializes a new instance of the TimeSpanSerializationOptions class.
public TimeSpanSerializationOptions ( BsonType representation ) : System
representation BsonType The representation for serialized TimeSpans.
Результат System

TimeSpanSerializationOptions() публичный Метод

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.
Результат System