Microsoft.CommerceServer.Ma ...


 Collapse AllExpand All        Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: J# Code: JScript 
Customer Class

Defines a Customer object.

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

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
Remarks

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.

Examples

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;
}

Inheritance Hierarchy

System..::.Object
  Microsoft.CommerceServer.Marketing..::.MarketingServices
    Microsoft.CommerceServer.Marketing..::.Customer
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference

Page view tracker