Table of Contents

Class IpLocation

Namespace
VpnHood.Net.IpLocations
Assembly
VpnHood.Net.IpLocations.dll

Represents where an IP address is: its country, and its region and city where known.

public class IpLocation
Inheritance
IpLocation
Inherited Members

Properties

CityName

Gets the city's name, or null when unknown.

public required string? CityName { get; init; }

Property Value

string

CountryCode

Gets the country's two-letter ISO 3166 code, such as US.

public required string CountryCode { get; init; }

Property Value

string

CountryName

Gets the country's English name.

public required string CountryName { get; init; }

Property Value

string

IpAddress

Gets the IP address.

[JsonConverter(typeof(IPAddressConverter))]
public required IPAddress IpAddress { get; init; }

Property Value

IPAddress

RegionName

Gets the region's name, such as a state or a province, or null when unknown.

public required string? RegionName { get; init; }

Property Value

string