다음을 통해 공유


Customer Class

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Defines a Customer object.

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

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public NotInheritable Class Customer _
    Inherits MarketingServices
'Usage
Dim instance As Customer
[ComVisibleAttribute(false)]
public sealed class Customer : MarketingServices
[ComVisibleAttribute(false)]
public ref class Customer sealed : public MarketingServices
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 = "https://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

Customer Members

Microsoft.CommerceServer.Marketing Namespace