MarketingServices Constructor (MarketingServiceAgent)
Initializes a new instance of the MarketingServices class in Agent mode.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)
Syntax
'Declaration
Protected Sub New ( _
agent As MarketingServiceAgent _
)
'Usage
Dim agent As MarketingServiceAgent
Dim instance As New MarketingServices(agent)
protected MarketingServices(
MarketingServiceAgent agent
)
protected:
MarketingServices(
MarketingServiceAgent^ agent
)
protected function MarketingServices(
agent : MarketingServiceAgent
)
Parameters
- agent
Type: Microsoft.CommerceServer.Marketing..::.MarketingServiceAgent
The object representing Marketing Web service.
Exceptions
Exception | Condition |
---|---|
FileNotFoundException | The dynamically loaded assembly containing the MarketingContext Agent implementation could not be loaded. The inner exception contains more details of the exception. |
ArgumentNullException | agent is null. |
Remarks
Creates a new instance of the MarketingServices class in Agent mode.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.