Share via


ContactEmail Property

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

Gets or sets the contact email address of the current Customer.

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

Syntax

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

value = instance.ContactEmail

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

Property Value

Type: System..::.String
The email address of the customer.

Exceptions

Exception Condition
StringLengthValidationException

An attempt was made to set the ContactEmail to a string that was longer than 128 characters.

Remarks

Stores the e-mail address for the Customer object. ContactEmail may contain up to 128 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 email address.

Examples

  cu.ContactEmail = "zztop@msn.com";

Permissions

See Also

Reference

Customer Class

Customer Members

Microsoft.CommerceServer.Marketing Namespace