SocketTools .NET Edition

WebLocation.CityName Property

Gets the city name for the current location.

[Visual Basic]
Public ReadOnly Property CityName As String
[C#]
public string CityName {get;}

Property Value

A string which identifies the city in which the external IP address is located.

Remarks

This property returns a string which identifies the city in which the external IP address is located. These names will always be in English, regardless of the current system locale. If the city name cannot be determined, this property may return an empty string.

See Also