This documentation is archived and is not being maintained.

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

Initializes a new instance of the CivicAddress class using address information.

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
A string containing the first line of the street address.
addressLine2
Type: System::String
A string containing the second line of the street address.
building
Type: System::String
A string containing the building name or number.
city
Type: System::String
A string containing the city.
countryRegion
Type: System::String
A string containing the country or region.
floorLevel
Type: System::String
A string containing the floor number.
postalCode
Type: System::String
A string containing the postal code.
stateProvince
Type: System::String
A string containing the state or province.

ExceptionCondition
ArgumentException

At least one parameter must be a non-empty string.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: