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

Represents serialization options for a DateTime value.
Inheritance: IBsonSerializationOptions
ファイルを表示 Open project: egametang/Egametang Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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.

DateTimeSerializationOptions ( ) : System

Initializes a new instance of the DateTimeSerializationOptions class.

DateTimeSerializationOptions ( DateTimeKind kind ) : System

Initializes a new instance of theDateTimeSerializationOptions class.

DateTimeSerializationOptions ( DateTimeKind kind, BsonType representation ) : System

Initializes a new instance of the DateTimeSerializationOptions class.

DateTimeSerializationOptions ( bool dateOnly ) : System

Initializes a new instance of the DateTimeSerializationOptions class.

DateTimeSerializationOptions ( bool dateOnly, BsonType representation ) : System

Initializes a new instance of the DateTimeSerializationOptions class.

Method Details

ApplyAttribute() public method

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.
return void

Clone() public method

Clones the serialization options.
public Clone ( ) : IBsonSerializationOptions
return IBsonSerializationOptions

DateTimeSerializationOptions() public method

Initializes a new instance of the DateTimeSerializationOptions class.
public DateTimeSerializationOptions ( ) : System
return System

DateTimeSerializationOptions() public method

Initializes a new instance of theDateTimeSerializationOptions class.
public DateTimeSerializationOptions ( DateTimeKind kind ) : System
kind DateTimeKind The DateTimeKind (Local, Unspecified or Utc).
return System

DateTimeSerializationOptions() public method

Initializes a new instance of the DateTimeSerializationOptions class.
public DateTimeSerializationOptions ( DateTimeKind kind, BsonType representation ) : System
kind DateTimeKind The DateTimeKind (Local, Unspecified or Utc).
representation BsonType The external representation.
return System

DateTimeSerializationOptions() public method

Initializes a new instance of the DateTimeSerializationOptions class.
public DateTimeSerializationOptions ( bool dateOnly ) : System
dateOnly bool Whether this DateTime consists of a Date only.
return System

DateTimeSerializationOptions() public method

Initializes a new instance of the DateTimeSerializationOptions class.
public DateTimeSerializationOptions ( bool dateOnly, BsonType representation ) : System
dateOnly bool Whether this DateTime consists of a Date only.
representation BsonType The external representation.
return System