CivicAddress Constructor (String, String, String, String, String, String, String, String)
Collapse the table of content
Expand the table of content

CivicAddress Constructor (String, String, String, String, String, String, String, String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the CivicAddress with the provided address data.

Namespace:  System.Device.Location
Assembly:  System.Device (in System.Device.dll)

public CivicAddress(
	string addressLine1,
	string addressLine2,
	string building,
	string city,
	string countryRegion,
	string floorLevel,
	string postalCode,
	string stateProvince
)

Parameters

addressLine1
Type: System.String
The first line of the civic address, generally used for street name and number.
addressLine2
Type: System.String
The second line of the civic address.
building
Type: System.String
The building name of the civic address.
city
Type: System.String
The city of the civic address.
countryRegion
Type: System.String
The country or region of the civic address.
floorLevel
Type: System.String
The floor level of the civic address.
postalCode
Type: System.String
The postal code of the civic address.
stateProvince
Type: System.String
The state or province of the civic address.

This method may throw one of the following exceptions.

ArgumentException

All of the parameters passed to the constructer are null or empty strings. This constructor requires at least one non-empty string parameter.

AccelerometerStartFailedException

The platform was unable to start the accelerometer sensor.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft