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

Represents serialization options for a KeyValuePair.
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.

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

Freeze() public méthode

Freezes the serialization options.
public Freeze ( ) : IBsonSerializationOptions
Résultat IBsonSerializationOptions

KeyValuePairSerializationOptions() public méthode

Initializes a new instance of the KeyValuePairSerializationOptions class.
public KeyValuePairSerializationOptions ( ) : System
Résultat System

KeyValuePairSerializationOptions() public méthode

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

KeyValuePairSerializationOptions() public méthode

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.
Résultat System