Class NamedIdMemberConvention
- Namespace
- MongoDB.Bson.Serialization.Conventions
- Assembly
- MongoDB.Bson.dll
A convention that finds the id member by name.
public class NamedIdMemberConvention : ConventionBase, IClassMapConvention, IConvention- Inheritance
- 
      
      
      NamedIdMemberConvention
- Implements
- Inherited Members
- Extension Methods
Constructors
NamedIdMemberConvention(IEnumerable<string>)
Initializes a new instance of the NamedIdMemberConvention class.
public NamedIdMemberConvention(IEnumerable<string> names)Parameters
- namesIEnumerable<string>
- The names. 
NamedIdMemberConvention(IEnumerable<string>, BindingFlags)
Initializes a new instance of the NamedIdMemberConvention class.
public NamedIdMemberConvention(IEnumerable<string> names, BindingFlags bindingFlags)Parameters
- namesIEnumerable<string>
- The names. 
- bindingFlagsBindingFlags
- The binding flags. 
NamedIdMemberConvention(IEnumerable<string>, MemberTypes)
Initializes a new instance of the NamedIdMemberConvention class.
public NamedIdMemberConvention(IEnumerable<string> names, MemberTypes memberTypes)Parameters
- namesIEnumerable<string>
- The names. 
- memberTypesMemberTypes
- The member types. 
NamedIdMemberConvention(IEnumerable<string>, MemberTypes, BindingFlags)
Initializes a new instance of the NamedIdMemberConvention class.
public NamedIdMemberConvention(IEnumerable<string> names, MemberTypes memberTypes, BindingFlags bindingFlags)Parameters
- namesIEnumerable<string>
- The names. 
- memberTypesMemberTypes
- The member types. 
- bindingFlagsBindingFlags
- The binding flags. 
Exceptions
NamedIdMemberConvention(params string[])
Initializes a new instance of the NamedIdMemberConvention class.
public NamedIdMemberConvention(params string[] names)Parameters
- namesstring[]
- The names. 
Methods
Apply(BsonClassMap)
Applies a modification to the class map.
public void Apply(BsonClassMap classMap)Parameters
- classMapBsonClassMap
- The class map.