BsonSerializerRegisterDiscriminatorConvention Method |
Registers the discriminator convention for a type.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
Syntax public static void RegisterDiscriminatorConvention(
Type type,
IDiscriminatorConvention convention
)
Public Shared Sub RegisterDiscriminatorConvention (
type As Type,
convention As IDiscriminatorConvention
)
static member RegisterDiscriminatorConvention :
type : Type *
convention : IDiscriminatorConvention -> unit
Parameters
- type
- Type: SystemType
Type type. - convention
- Type: MongoDB.Bson.Serialization.ConventionsIDiscriminatorConvention
The discriminator convention.
See Also