共用方式為


MapsSearchModelFactory.Address Method

Definition

Initializes a new instance of Address.

public static Azure.Maps.Search.Models.Address Address(string addressLine = default, string locality = default, string neighborhood = default, System.Collections.Generic.IEnumerable<Azure.Maps.Search.Models.AddressAdminDistrictsItem> adminDistricts = default, string postalCode = default, Azure.Maps.Search.Models.AddressCountryRegion countryRegion = default, string formattedAddress = default, string streetName = default, string streetNumber = default, Azure.Maps.Search.Models.Intersection intersection = default);
static member Address : string * string * string * seq<Azure.Maps.Search.Models.AddressAdminDistrictsItem> * string * Azure.Maps.Search.Models.AddressCountryRegion * string * string * string * Azure.Maps.Search.Models.Intersection -> Azure.Maps.Search.Models.Address
Public Shared Function Address (Optional addressLine As String = Nothing, Optional locality As String = Nothing, Optional neighborhood As String = Nothing, Optional adminDistricts As IEnumerable(Of AddressAdminDistrictsItem) = Nothing, Optional postalCode As String = Nothing, Optional countryRegion As AddressCountryRegion = Nothing, Optional formattedAddress As String = Nothing, Optional streetName As String = Nothing, Optional streetNumber As String = Nothing, Optional intersection As Intersection = Nothing) As Address

Parameters

addressLine
String

AddressLine that includes Street Name and Number.

locality
String

locality property.

neighborhood
String

neighborhood property.

adminDistricts
IEnumerable<AddressAdminDistrictsItem>

The subdivision name in the country or region for an address. This element is typically treated as the first order administrative subdivision, but in some cases it also contains the second, third, or fourth order subdivision in a country, dependency, or region.

postalCode
String

Postal Code property.

countryRegion
AddressCountryRegion
formattedAddress
String

Formatted Address property.

streetName
String

The name of the street from formattedAddress.

streetNumber
String

The number in the street, if available, from formattedAddress.

intersection
Intersection

The address of the result.

Returns

A new Address instance for mocking.

Applies to