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

Represents serialization options for a KeyValuePair.
Inheritance: BsonBaseSerializationOptions
Exibir arquivo Open project: egametang/Egametang Class Usage Examples

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.

Freeze ( ) : IBsonSerializationOptions

Freezes the serialization options.

KeyValuePairSerializationOptions ( ) : System

Initializes a new instance of the KeyValuePairSerializationOptions class.

KeyValuePairSerializationOptions ( BsonType representation ) : System

Initializes a new instance of the KeyValuePairSerializationOptions class.

KeyValuePairSerializationOptions ( BsonType representation, IBsonSerializationOptions keySerializationOptions, IBsonSerializationOptions valueSerializationOptions ) : System

Initializes a new instance of the KeyValuePairSerializationOptions 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

Freeze() public method

Freezes the serialization options.
public Freeze ( ) : IBsonSerializationOptions
return IBsonSerializationOptions

KeyValuePairSerializationOptions() public method

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

KeyValuePairSerializationOptions() public method

Initializes a new instance of the KeyValuePairSerializationOptions class.
public KeyValuePairSerializationOptions ( BsonType representation ) : System
representation BsonType The representation to use for the KeyValuePair.
return System

KeyValuePairSerializationOptions() public method

Initializes a new instance of the KeyValuePairSerializationOptions class.
public KeyValuePairSerializationOptions ( BsonType representation, IBsonSerializationOptions keySerializationOptions, IBsonSerializationOptions valueSerializationOptions ) : System
representation BsonType The representation to use for the KeyValuePair.
keySerializationOptions IBsonSerializationOptions The serialization options for the key.
valueSerializationOptions IBsonSerializationOptions The serialization options for the value.
return System