MarketingServiceAgent Constructor (Uri, String[], IPromptForCredentials)
Initializes a MarketingServiceAgent object to run against the specified Marketing Web service with the specified allowable authentication methods and authentication credential callback method.
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(), _
credentialPrompter As IPromptForCredentials _
)
'Usage
Dim serviceUri As Uri
Dim allowedAuthModes As String()
Dim credentialPrompter As IPromptForCredentials
Dim instance As New MarketingServiceAgent(serviceUri, _
allowedAuthModes, credentialPrompter)
public MarketingServiceAgent(
Uri serviceUri,
string[] allowedAuthModes,
IPromptForCredentials credentialPrompter
)
public:
MarketingServiceAgent(
Uri^ serviceUri,
array<String^>^ allowedAuthModes,
IPromptForCredentials^ credentialPrompter
)
public function MarketingServiceAgent(
serviceUri : Uri,
allowedAuthModes : String[],
credentialPrompter : IPromptForCredentials
)
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.
- credentialPrompter
Type: Microsoft.CommerceServer..::.IPromptForCredentials
A callback interface that will be invoked when the current user's default credentials are not valid for the current Web service.
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.