ServiceAgent Constructor (Uri, String[], IPromptForCredentials)

Initializes a new instance of the ServiceAgent class for communicating with a specific Web service with the specified allowable authentication methods and authentication credential callback method.

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

Syntax

'Declaration
Protected Sub New ( _
    serviceUri As Uri, _
    allowedAuthMethods As String(), _
    credentialPrompter As IPromptForCredentials _
)
'Usage
Dim serviceUri As Uri
Dim allowedAuthMethods As String()
Dim credentialPrompter As IPromptForCredentials

Dim instance As New ServiceAgent(serviceUri, _
    allowedAuthMethods, credentialPrompter)
protected ServiceAgent(
    Uri serviceUri,
    string[] allowedAuthMethods,
    IPromptForCredentials credentialPrompter
)
protected:
ServiceAgent(
    Uri^ serviceUri, 
    array<String^>^ allowedAuthMethods, 
    IPromptForCredentials^ credentialPrompter
)
protected function ServiceAgent(
    serviceUri : Uri, 
    allowedAuthMethods : String[], 
    credentialPrompter : IPromptForCredentials
)

Parameters

  • serviceUri
    Type: System..::.Uri
    The Uri used to locate the Web service this agent will run against.
  • allowedAuthMethods
    Type: array<System..::.String>[]()[]
    A list of authorization modes which are allowed.

Remarks

The returned ServiceAgent will not prompt on authentication failure.

Permissions

See Also

Reference

ServiceAgent Class

ServiceAgent Members

ServiceAgent Overload

Microsoft.CommerceServer Namespace