Create Method

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

Initializes a new instance of the MarketingContext class.

  NameDescription
ms989397.pubmethod(en-US,CS.70).gifms989397.static(en-US,CS.70).gifCreate(String)Creates a new instance of the MarketingContext class using the specified Marketing Web service in Agent mode.
ms989397.pubmethod(en-US,CS.70).gifms989397.static(en-US,CS.70).gifCreate(MarketingServiceAgent)Creates a new instance of the MarketingContext class using the specified Marketing Web service in Agent mode.
ms989397.pubmethod(en-US,CS.70).gifms989397.static(en-US,CS.70).gifCreate(String, String, AuthorizationMode)Creates a new instance of the MarketingContext class using the specified Marketing Web service in Database mode and authorization policy configuration to manager authorization credentials.
ms989397.pubmethod(en-US,CS.70).gifms989397.static(en-US,CS.70).gifCreate(String, String, AuthorizationMode, Int32, Int32)Creates a new instance of the MarketingContext class using the specified Marketing Web service in Database mode and authorization policy configuration to manager authorization credentials.
ms989397.pubmethod(en-US,CS.70).gifms989397.static(en-US,CS.70).gifCreate(String, String, AuthorizationMode, Int32, Int32, Int32, Int32)Initializes a new instance of the MarketingContext class using the specified Marketing System in Database mode and authorization policy configuration to manager authorization credentials.
Top

A static overloaded method to create Local-mode or Remote-mode Marketing system objects used to run against the Marketing Web Service.

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.

Show: