Class BsonDiscriminatorAttribute

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type BsonDiscriminatorAttribute = class(TCustomAttribute)

Description

Applies a discriminator to a class. See the unit documentation for details

Hierarchy

  • TCustomAttribute
  • BsonDiscriminatorAttribute

Overview

Methods

Public constructor Create(const ADiscriminator: String; const ARequired: Boolean = False); overload;
Public constructor Create(const ARequired: Boolean); overload;

Properties

Public property Discriminator: String read FDiscriminator;
Public property Required: Boolean read FRequired;

Description

Methods

Public constructor Create(const ADiscriminator: String; const ARequired: Boolean = False); overload;
 
Public constructor Create(const ARequired: Boolean); overload;
 

Properties

Public property Discriminator: String read FDiscriminator;

The discriminator to use for the class

Public property Required: Boolean read FRequired;

Whether the discriminator is always serialized or not


Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26