MongoDB.Bson.Serialization.Conventions.ConventionProfile.SetMemberFinderConvention C# (CSharp) Method

SetMemberFinderConvention() public method

Sets the member finder convention.
public SetMemberFinderConvention ( IMemberFinderConvention convention ) : ConventionProfile
convention IMemberFinderConvention A member finder convention.
return ConventionProfile
        public ConventionProfile SetMemberFinderConvention(IMemberFinderConvention convention)
        {
            MemberFinderConvention = convention;
            return this;
        }

Usage Example

 public virtual void Init()
 {
     var profile = new ConventionProfile();
     profile.SetMemberFinderConvention(new LoggingMemberFinderConvention());
     BsonClassMap.RegisterClassMap(new ExceptionMap());
     BsonClassMap.RegisterClassMap(new LocationInformationMap());
     BsonClassMap.RegisterConventions(profile, t => true);
 }
All Usage Examples Of MongoDB.Bson.Serialization.Conventions.ConventionProfile::SetMemberFinderConvention