Class JsonSubTypeUnknownAttribute
Registers the synthetic fallback subtype for a polymorphic base marked
wildcardSubtype = true in the IDL. Emitted by the generator on the
root of the hierarchy. When the wire discriminator value does not match
any registered JsonSubTypeAttribute, PolymorphicConverter
constructs this subtype instead of failing to deserialize.
Inheritance
JsonSubTypeUnknownAttribute
Namespace: Pulumi.Cloud.Sdk
Assembly: Pulumi.Cloud.Sdk.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = true)]
public sealed class JsonSubTypeUnknownAttribute : Attribute
Constructors
View Source
JsonSubTypeUnknownAttribute(Type)
Declaration
public JsonSubTypeUnknownAttribute(Type subtype)
Parameters
| Type |
Name |
Description |
| Type |
subtype |
|
Properties
View Source
Subtype
Declaration
public Type Subtype { get; }
Property Value