Click to Rate and Give Feedback

  Switch on low bandwidth view
.NET Framework Class Library
Customer Class

Defines a Customer object.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Visual Basic (Declaration)
<ComVisibleAttribute(False)> _
Public NotInheritable Class Customer _
    Inherits MarketingServices
Visual Basic (Usage)
Dim instance As Customer
C#
[ComVisibleAttribute(false)]
public sealed class Customer : MarketingServices
Visual C++
[ComVisibleAttribute(false)]
public ref class Customer sealed : public MarketingServices
JScript
public final class Customer extends MarketingServices

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

A customer is the owner of your marketing campaigns. A customer can be an advertiser, an agency, or yourself. Each customer can have multiple campaigns that represent different marketing programs.

public static Customer GetSampleCustomer1(MarketingContext marketingSystem)
{
  Customer cu = marketingSystem.Customers.NewCustomer();
  Guid name = Guid.NewGuid();
  cu.Name = "Cust_" + name.ToString();
  cu.ContactAddress = "6610 199th Ave NE";
  cu.ContactEmail = "zztop@msn.com";
  cu.ContactFax = "(610) 555-1212";
  cu.ContactPhone = "(819) 555-1300";
  cu.DefaultUrl = "http://example.microsoft.com";
  cu.Description = "This customer has a special place in my heart";
  cu.Industry = "SomeIndustryCode";
  return cu;
}

System..::.Object
  Microsoft.CommerceServer.Marketing..::.MarketingServices
    Microsoft.CommerceServer.Marketing..::.Customer
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker