Share via


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)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Class MarketingContext _
    Inherits MarketingServices _
    Implements IDisposable
'Usage
Dim instance As MarketingContext
[ComVisibleAttribute(false)]
public class MarketingContext : MarketingServices, IDisposable
[ComVisibleAttribute(false)]
public ref class MarketingContext : public MarketingServices, 
    IDisposable
public class MarketingContext extends MarketingServices implements IDisposable

Remarks

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.

Inheritance Hierarchy

System..::.Object
  Microsoft.CommerceServer.Marketing..::.MarketingServices
    Microsoft.CommerceServer.Marketing..::.MarketingContext

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

MarketingContext Members

Microsoft.CommerceServer.Marketing Namespace