Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficePolymorphicAttribute

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
ac7e6e1bad8a with working tree changes
Base
Attribute
Modifiers
sealed
Attributes
AttributeUsage(1028, AllowMultiple = false, Inherited = false)

Configures how a type with OfficeDerivedTypeAttribute registrations writes its discriminator.

Inheritance

  • Attribute
  • OfficePolymorphicAttribute

Constructors

public OfficePolymorphicAttribute() #

Properties

public string? DiscriminatorPropertyName { get; set; } #

Gets or sets the key that holds the discriminator, such as kind. The key is written first and may appear anywhere when reading. When null (the default), YAML uses a local tag (!cat) and TOML the key $type.