Share via


MarketingServiceAgent Constructor (Uri, String[])

Initializes a MarketingServiceAgent object to run against the specified Marketing Web service with the specified allowable authentication methods.

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

Syntax

'Declaration
Public Sub New ( _
    serviceUri As Uri, _
    allowedAuthModes As String() _
)
'Usage
Dim serviceUri As Uri
Dim allowedAuthModes As String()

Dim instance As New MarketingServiceAgent(serviceUri, _
    allowedAuthModes)
public MarketingServiceAgent(
    Uri serviceUri,
    string[] allowedAuthModes
)
public:
MarketingServiceAgent(
    Uri^ serviceUri, 
    array<String^>^ allowedAuthModes
)
public function MarketingServiceAgent(
    serviceUri : Uri, 
    allowedAuthModes : String[]
)

Parameters

  • serviceUri
    Type: System..::.Uri
    The Uri used to locate the Web service this agent will run against.
  • allowedAuthModes
    Type: array<System..::.String>[]()[]
    The list of allowable authentication methods. Use DefaultAuthMethods to indicate the default set of authentication methods.

Remarks

The returned MarketingServiceAgent will not prompt on authentication failure.

Permissions

See Also

Reference

MarketingServiceAgent Class

MarketingServiceAgent Members

MarketingServiceAgent Overload

Microsoft.CommerceServer.Marketing Namespace