Share via


ContactPhone Property

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

Gets or sets the contact phone number of the current Customer object.

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

Syntax

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

value = instance.ContactPhone

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

Property Value

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

Exceptions

Exception Condition
StringLengthValidationException

An attempt was made to set the ContactPhone to a string that was greater than 100 characters.

Remarks

Stores the phone number for the Customer object. ContactPhone may contain up to 100 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 telephone number.

Examples

  cu.ContactPhone = "(819) 555-1300";

Permissions

See Also

Reference

Customer Class

Customer Members

Microsoft.CommerceServer.Marketing Namespace