MarketingContext Class
Collapse the table of content
Expand the table of content

MarketingContext Class

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

Contains the top level object used to interact with the Marketing System APIs.

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

public class MarketingContext : MarketingServices, IDisposable

The MarketingContext object is the root object used to interact with the MarketingContext APIs. It can be initialized in Agent mode, to interact with an instance of the Marketing Web service, or in Local mode, to interact directly with the Marketing SQL Database.

MarketingContext is often referred to as the Marketing System Agent object, since it is used to communicate with a Web service. The MarketingContext objects uses the services of a MarketingServiceAgent to negotiate an appropriate authentication method with the Marketing Web service and manages authentication credentials used to authenticate the user to the service. It is also possible to manage Web service authentication credentials manually. This can be done by explicitly setting Credentials before constructing the MarketingContext object.


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