C# 클래스 MongoDB.Bson.Serialization.Options.TimeSpanSerializationOptions

Represents serialization options for a TimeSpan value.
상속: BsonBaseSerializationOptions
파일 보기 프로젝트 열기: egametang/Egametang 1 사용 예제들

공개 메소드들

메소드 설명
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