Class StructuredAddress
Address with structured fields (Address1, City, Zip) - does not vary its layout by country, unliked the formatted address.
Carrier object for StructuredAddress.Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
public class StructuredAddress : Object
Constructors
StructuredAddress()
Default constructor
Declaration
public StructuredAddress()
Properties
Address1
Address line 1
Declaration
public virtual string Address1 { get; set; }
Property Value
Type | Description |
---|---|
String |
Address2
Address line 2
Declaration
public virtual string Address2 { get; set; }
Property Value
Type | Description |
---|---|
String |
Address3
Address line 3
Declaration
public virtual string Address3 { get; set; }
Property Value
Type | Description |
---|---|
String |
AtypeIdx
Bit mask, combines address type (EAddressType) and owner type (EOwnerType)
Declaration
public virtual AddressType AtypeIdx { get; set; }
Property Value
Type | Description |
---|---|
AddressType |
City
City corresponding to zip code
Declaration
public virtual string City { get; set; }
Property Value
Type | Description |
---|---|
String |
County
County (not country)
Declaration
public virtual string County { get; set; }
Property Value
Type | Description |
---|---|
String |
Formatted
Read-only formatted address multi-line string. e.g.: <c>"Brugata 123,\n1234 OSLO\n"</c> or <c>"Bridgelane 123,\nWest Tooting,\nThe Shire ES2 W31\n"</c>.
Declaration
public virtual string Formatted { get; set; }
Property Value
Type | Description |
---|---|
String |
State
State
Declaration
public virtual string State { get; set; }
Property Value
Type | Description |
---|---|
String |
Zipcode
Zip code, alphanumeric
Declaration
public virtual string Zipcode { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The carrier contents. |
ToString(String)
Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.
Declaration
public string ToString(string prefix)
Parameters
Type | Name | Description |
---|---|---|
String | prefix | The line prefix (typically used for indenting) |
Returns
Type | Description |
---|---|
String | The carrier contents. |