다음을 통해 공유


ContactAddress Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the contact address of the current Customer.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Property ContactAddress As String
'Usage
Dim instance As Customer
Dim value As String

value = instance.ContactAddress

instance.ContactAddress = value
public string ContactAddress { get; set; }
public:
property String^ ContactAddress {
    String^ get ();
    void set (String^ value);
}
public function get ContactAddress () : String
public function set ContactAddress (value : String)

Property Value

Type: System..::.String
The contact address of the Customer.

Exceptions

Exception Condition
StringLengthValidationException

An attempt was made to set ContactAddress to a string that was longer than 1024 characters.

Remarks

Stores the address for the Customer object. ContactAddress may contain up to 1024 characters. When setting the property, leading and trailing whitespace is removed. Setting the value to nullNothingnullptra null reference (Nothing in Visual Basic) or string.empty indicates that there should be no customer.

Examples

  cu.ContactAddress = "6610 199th Ave NE";

Permissions

See Also

Reference

Customer Class

Customer Members

Microsoft.CommerceServer.Marketing Namespace