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
- serviceUrl
Type: System..::.String
The URL of the Marketing Web service to access
- 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
- 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.