Skip to content

IPAddressJsonConverter.WriteAsPropertyName(Utf8JsonWriter, IPAddress, JsonSerializerOptions)

WriteAsPropertyName(Utf8JsonWriter, IPAddress, JsonSerializerOptions)

override
View source
public override void WriteAsPropertyName(Utf8JsonWriter writer, IPAddress value, JsonSerializerOptions options)
Writes a dictionary key as a JSON property name.

Parameters

writerUtf8JsonWriter
The System.Text.Json.Utf8JsonWriter to write to.
valueIPAddress
The value to convert. The value of System.Text.Json.Serialization.JsonConverter.HandleNull determines if the converter handles null values.
optionsJsonSerializerOptions
The options to use when writing the value.

Exceptions

System.ArgumentNullException
writer or value is null.