Share via


GeoLocation Class

Definition

The geo-location context attached to the ip entity

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.GeoLocationTypeConverter))]
public class GeoLocation : Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.IGeoLocation
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.GeoLocationTypeConverter))>]
type GeoLocation = class
    interface IGeoLocation
    interface IJsonSerializable
Public Class GeoLocation
Implements IGeoLocation
Inheritance
GeoLocation
Attributes
Implements

Constructors

GeoLocation()

Creates an new GeoLocation instance.

Properties

Asn

Autonomous System Number

City

City name

CountryCode

The country code according to ISO 3166 format

CountryName

Country name according to ISO 3166 Alpha 2: the lowercase of the English Short Name

Latitude

The longitude of the identified location, expressed as a floating point number with range of -180 to 180, with positive numbers representing East and negative numbers representing West. Latitude and longitude are derived from the city or postal code.

Longitude

The latitude of the identified location, expressed as a floating point number with range of - 90 to 90, with positive numbers representing North and negative numbers representing South. Latitude and longitude are derived from the city or postal code.

State

State name

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of GeoLocation.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of GeoLocation.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.IGeoLocation.

FromJsonString(String)

Creates a new instance of GeoLocation, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of GeoLocation into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to