Share via


ContactName Property

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

Gets or sets the contact name of the current Customer object.

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

Syntax

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

value = instance.ContactName

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

Property Value

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

Exceptions

Exception Condition
StringLengthValidationException

An attempt was made to set ContactName to a string that was longer than 255 characters.

Remarks

Stores the name of the Customer object. ContactName may contain up to 255 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 contact.

Examples

  Guid name = Guid.NewGuid();

Permissions

See Also

Reference

Customer Class

Customer Members

Microsoft.CommerceServer.Marketing Namespace