Table of Contents

Method SetShouldSerializeMethod

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

SetShouldSerializeMethod(Func<object, bool>)

Sets the method that will be called to determine whether the member should be serialized.

public BsonMemberMap SetShouldSerializeMethod(Func<object, bool> shouldSerializeMethod)

Parameters

shouldSerializeMethod Func<object, bool>

The method.

Returns

BsonMemberMap

The member map.