Class JsonDiscriminatorAttribute
Names the discriminator property of a discriminated-union hierarchy. Emitted
by the generator on the ROOT of the hierarchy and inherited by every
subtype — the C# analog of Jackson's
@JsonTypeInfo(property = "…").
Inheritance
JsonDiscriminatorAttribute
Namespace: Pulumi.Cloud.Sdk
Assembly: Pulumi.Cloud.Sdk.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = true)]
public sealed class JsonDiscriminatorAttribute : Attribute
Constructors
View Source
JsonDiscriminatorAttribute(string)
Declaration
public JsonDiscriminatorAttribute(string propertyName)
Parameters
| Type |
Name |
Description |
| string |
propertyName |
|
Properties
View Source
PropertyName
Declaration
public string PropertyName { get; }
Property Value