Click or drag to resize
TaxAddressServiceCreateAddress Method
Creates a new address according to the given parameters.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
protected AddressInfo CreateAddress(
	int countryId,
	int stateId = 0,
	string city = "",
	string zip = "",
	string line1 = "",
	string line2 = ""
)

Parameters

countryId
Type: SystemInt32
An ID of the country.
stateId (Optional)
Type: SystemInt32
An ID of the state.
city (Optional)
Type: SystemString
A city name.
zip (Optional)
Type: SystemString
A ZIP code.
line1 (Optional)
Type: SystemString
A first line of an address.
line2 (Optional)
Type: SystemString
A second line of an address.

Return Value

Type: AddressInfo
See Also