Skip to content

IPEndPointJsonConverter.WriteAsPropertyName(Utf8JsonWriter, IPEndPoint, JsonSerializerOptions)

WriteAsPropertyName(Utf8JsonWriter, IPEndPoint, JsonSerializerOptions)

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

Parameters

writerUtf8JsonWriter
The System.Text.Json.Utf8JsonWriter to write to.
valueIPEndPoint
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.