你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResourceManagerModelFactory.LocationMetadata Method

Definition

Initializes a new instance of LocationMetadata.

public static Azure.ResourceManager.Resources.Models.LocationMetadata LocationMetadata (Azure.ResourceManager.Resources.Models.RegionType? regionType = default, Azure.ResourceManager.Resources.Models.RegionCategory? regionCategory = default, string geography = default, string geographyGroup = default, double? longitude = default, double? latitude = default, string physicalLocation = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.PairedRegion> pairedRegions = default, string homeLocation = default);
static member LocationMetadata : Nullable<Azure.ResourceManager.Resources.Models.RegionType> * Nullable<Azure.ResourceManager.Resources.Models.RegionCategory> * string * string * Nullable<double> * Nullable<double> * string * seq<Azure.ResourceManager.Resources.Models.PairedRegion> * string -> Azure.ResourceManager.Resources.Models.LocationMetadata
Public Shared Function LocationMetadata (Optional regionType As Nullable(Of RegionType) = Nothing, Optional regionCategory As Nullable(Of RegionCategory) = Nothing, Optional geography As String = Nothing, Optional geographyGroup As String = Nothing, Optional longitude As Nullable(Of Double) = Nothing, Optional latitude As Nullable(Of Double) = Nothing, Optional physicalLocation As String = Nothing, Optional pairedRegions As IEnumerable(Of PairedRegion) = Nothing, Optional homeLocation As String = Nothing) As LocationMetadata

Parameters

regionType
Nullable<RegionType>

The type of the region.

regionCategory
Nullable<RegionCategory>

The category of the region.

geography
String

The geography of the location.

geographyGroup
String

The geography group of the location.

longitude
Nullable<Double>

The longitude of the location.

latitude
Nullable<Double>

The latitude of the location.

physicalLocation
String

The physical location of the Azure location.

pairedRegions
IEnumerable<PairedRegion>

The regions paired to this region.

homeLocation
String

The home location of an edge zone.

Returns

A new LocationMetadata instance for mocking.

Applies to