# IPEndPointJsonConverter.WriteAsPropertyName(Utf8JsonWriter, IPEndPoint, JsonSerializerOptions)

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

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

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

Writes a dictionary key as a JSON property name.

### Parameters

- `writer` (`Utf8JsonWriter`): The `System.Text.Json.Utf8JsonWriter` to write to.
- `value` (`IPEndPoint`): 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`.
