Share via


ProfilesServiceAgent Constructor (Uri, String[], IPromptForCredentials)

Initializes a new instance of the ProfilesServiceAgent class to run against the specified Profiles Web Service with the specified allowable authentication methods and authentication credential callback method.

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

Syntax

'Declaration
Public 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 ProfilesServiceAgent(serviceUri, _
    allowedAuthMethods, credentialPrompter)
public ProfilesServiceAgent(
    Uri serviceUri,
    string[] allowedAuthMethods,
    IPromptForCredentials credentialPrompter
)
public:
ProfilesServiceAgent(
    Uri^ serviceUri, 
    array<String^>^ allowedAuthMethods, 
    IPromptForCredentials^ credentialPrompter
)
public function ProfilesServiceAgent(
    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 ProfilesServiceAgent will not prompt on authentication failure.

Permissions

See Also

Reference

ProfilesServiceAgent Class

ProfilesServiceAgent Members

ProfilesServiceAgent Overload

Microsoft.CommerceServer.Profiles Namespace