다음을 통해 공유


GetCustomer Method

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

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function GetCustomer ( _
    customerId As Integer _
) As CustomerData
'Usage
Dim instance As MarketingWebService
Dim customerId As Integer
Dim returnValue As CustomerData

returnValue = instance.GetCustomer(customerId)
[WebMethodAttribute]
public virtual CustomerData GetCustomer(
    int customerId
)
[WebMethodAttribute]
public:
virtual CustomerData^ GetCustomer(
    int customerId
)
public function GetCustomer(
    customerId : int
) : CustomerData

Parameters

  • customerId
    Type: System..::.Int32
    The identifier of the customer to be retrieved.

Return Value

Type: CustomerData
The CustomerData associated with the customerId, retrieved from the database.

Exceptions

Exception Condition
NotAuthorizedException

The user is not authorized to perform the requested operation.

ArgumentOutOfRangeException

customerId is less than zero.

EntityDoesNotExistException

No customer exists with this customerId.

Remarks

Use this method to retrieve a specific CustomerData object, associated with the Customer, 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

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace