Partager via


MarketingServiceAgent Constructor (String, 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 ( _
    serviceUrl As String, _
    allowedAuthModes As String() _
)
'Usage
Dim serviceUrl As String
Dim allowedAuthModes As String()

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

Parameters

  • 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