Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
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
- customerId
Type: System..::.Int32
The Id of the Customer to retrieve. May not be less than zero.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.