CustomerId Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the unique identifier of the customer that the current campaign object is associated with.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Public Property CustomerId As Integer
'Usage
Dim instance As Campaign
Dim value As Integer
value = instance.CustomerId
instance.CustomerId = value
public int CustomerId { get; set; }
public:
property int CustomerId {
int get ();
void set (int value);
}
public function get CustomerId () : int
public function set CustomerId (value : int)
Property Value
Type: System..::.Int32
The id of the associated customer.
Exceptions
Exception | Condition |
---|---|
MinimumValueValidationException | An attempt was made to set the customer id to a negative value. |
Remarks
The CustomerId is a unique identifier to the Customer. A Customer is the company or individual for whom you run campaigns. A customer can be an agency, advertiser, or your own business.
When a campaign is deleted, its association with any parent campaign is removed. To restore the item, it must be associated with a customer record again.
When changing the value of CustomerName, the specified customer record must exist. The user must also have permission to perform the MoveCampaignToCustomer operation or the change will fail with a NotAuthorizedException.
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.