# IPAddressJsonConverter.WriteAsPropertyName(Utf8JsonWriter, IPAddress, JsonSerializerOptions)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.serialization.ipaddressjsonconverter/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.serialization.ipaddressjsonconverter/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Core/Serialization/SystemTextJson/IPAddressJsonConverter.cs#L89-L92)

```csharp
public override void WriteAsPropertyName(Utf8JsonWriter writer, IPAddress value, JsonSerializerOptions options)
```

Writes a dictionary key as a JSON property name.

### Parameters

- `writer` (`Utf8JsonWriter`): The `System.Text.Json.Utf8JsonWriter` to write to.
- `value` (`IPAddress`): The value to convert. The value of `System.Text.Json.Serialization.JsonConverter-1.HandleNull` determines if the converter handles `null` values.
- `options` (`JsonSerializerOptions`): The options to use when writing the value.

### Exceptions

- `System.ArgumentNullException`: `writer` or `value` is `null`.
