Table of Contents

Constructor NamedExtraElementsMemberConvention

Namespace
MongoDB.Bson.Serialization.Conventions
Assembly
MongoDB.Bson.dll

NamedExtraElementsMemberConvention(string)

Initializes a new instance of the NamedExtraElementsMemberConvention class.

public NamedExtraElementsMemberConvention(string name)

Parameters

name string

The name of the extra elements member.

NamedExtraElementsMemberConvention(IEnumerable<string>)

Initializes a new instance of the NamedExtraElementsMemberConvention class.

public NamedExtraElementsMemberConvention(IEnumerable<string> names)

Parameters

names IEnumerable<string>

The names.

NamedExtraElementsMemberConvention(IEnumerable<string>, MemberTypes)

Initializes a new instance of the NamedExtraElementsMemberConvention class.

public NamedExtraElementsMemberConvention(IEnumerable<string> names, MemberTypes memberTypes)

Parameters

names IEnumerable<string>

The names.

memberTypes MemberTypes

The member types.

NamedExtraElementsMemberConvention(IEnumerable<string>, BindingFlags)

Initializes a new instance of the NamedExtraElementsMemberConvention class.

public NamedExtraElementsMemberConvention(IEnumerable<string> names, BindingFlags bindingFlags)

Parameters

names IEnumerable<string>

The names.

bindingFlags BindingFlags

The binding flags.

NamedExtraElementsMemberConvention(IEnumerable<string>, MemberTypes, BindingFlags)

Initializes a new instance of the NamedExtraElementsMemberConvention class.

public NamedExtraElementsMemberConvention(IEnumerable<string> names, MemberTypes memberTypes, BindingFlags bindingFlags)

Parameters

names IEnumerable<string>

The names.

memberTypes MemberTypes

The member types.

bindingFlags BindingFlags

The binding flags.

Exceptions

ArgumentNullException