Table of Contents

Method WriteAsPropertyName

Namespace
MailFathom.Domain.Failures
Assembly
MailFathom.Domain.dll

WriteAsPropertyName(Utf8JsonWriter, MailFathomErrorCode, JsonSerializerOptions)

Writes a dictionary key as a JSON property name.

public override void WriteAsPropertyName(Utf8JsonWriter writer, MailFathomErrorCode value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

The Utf8JsonWriter to write to.

value MailFathomErrorCode

The value to convert. The value of HandleNull determines if the converter handles null values.

options JsonSerializerOptions

The options to use when writing the value.

Exceptions

JsonException

Thrown when the value is the unspecified struct default.