JsonFieldWithDefault Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This is used to express the source of an input schema mapping for a single target field in the Event Grid Event schema. This is currently used in the mappings for the 'subject', 'eventtype' and 'dataversion' properties. This represents a field in the input event schema along with a default value to be used, and at least one of these two properties should be provided.
public class JsonFieldWithDefault
type JsonFieldWithDefault = class
Public Class JsonFieldWithDefault
- Inheritance
-
JsonFieldWithDefault
Constructors
JsonFieldWithDefault() |
Initializes a new instance of the JsonFieldWithDefault class. |
JsonFieldWithDefault(String, String) |
Initializes a new instance of the JsonFieldWithDefault class. |
Properties
DefaultValue |
Gets or sets the default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload. |
SourceField |
Gets or sets name of a field in the input event schema that's to be used as the source of a mapping. |
Applies to
Azure SDK for .NET