Create Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Initializes a new instance of the MarketingContext class.
Overload List
Name | Description | |
---|---|---|
Create(String) | Creates a new instance of the MarketingContext class using the specified Marketing Web service in Agent mode. | |
Create(MarketingServiceAgent) | Creates a new instance of the MarketingContext class using the specified Marketing Web service in Agent mode. | |
Create(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. | |
Create(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. | |
Create(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
Remarks
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.