共用方式為


ISubscription.GetLocationByRegion(Region) Method

Definition

Gets the data center location for the specified region, if the selected subscription has access to it.

public Microsoft.Azure.Management.ResourceManager.Fluent.ILocation GetLocationByRegion (Microsoft.Azure.Management.ResourceManager.Fluent.Core.Region region);
abstract member GetLocationByRegion : Microsoft.Azure.Management.ResourceManager.Fluent.Core.Region -> Microsoft.Azure.Management.ResourceManager.Fluent.ILocation
Public Function GetLocationByRegion (region As Region) As ILocation

Parameters

region
Region

an Azure region

Returns

an Azure data center location, or null if the location is not accessible to this subscription

Applies to