Share via


ProfilesServiceAgent Constructor (String, String[])

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

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

Syntax

'Declaration
Public Sub New ( _
    serviceUrl As String, _
    allowedAuthMethods As String() _
)
'Usage
Dim serviceUrl As String
Dim allowedAuthMethods As String()

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

Parameters

  • serviceUrl
    Type: System..::.String
    The URL of 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