Share via


GetCustomer Method

Retrieves a Customer, as identified by the Customer's unique identifier.

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

Syntax

'Declaration
Public Function GetCustomer ( _
    customerId As Integer _
) As Customer
'Usage
Dim instance As CustomerManager
Dim customerId As Integer
Dim returnValue As Customer

returnValue = instance.GetCustomer(customerId)
public Customer GetCustomer(
    int customerId
)
public:
Customer^ GetCustomer(
    int customerId
)
public function GetCustomer(
    customerId : int
) : Customer

Parameters

Return Value

Type: Microsoft.CommerceServer.Marketing..::.Customer
The Customer associated with the customerId, retrieved from the database.

Exceptions

Exception Condition
ArgumentOutOfRangeException

customerId was less than zero.

EntityDoesNotExistException

The requested customer does not exist.

Remarks

Use this method to retrieve a specific Customer object from the database.

Conceptually a Customer is the parent object of Campaign objects. Each Campaign must be contained within a Customer object.

Permissions

See Also

Reference

CustomerManager Class

CustomerManager Members

Microsoft.CommerceServer.Marketing Namespace