ProfilesServiceAgent Constructor (String, 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 ( _
serviceUrl As String, _
allowedAuthMethods As String(), _
credentialPrompter As IPromptForCredentials _
)
'Usage
Dim serviceUrl As String
Dim allowedAuthMethods As String()
Dim credentialPrompter As IPromptForCredentials
Dim instance As New ProfilesServiceAgent(serviceUrl, _
allowedAuthMethods, credentialPrompter)
public ProfilesServiceAgent(
string serviceUrl,
string[] allowedAuthMethods,
IPromptForCredentials credentialPrompter
)
public:
ProfilesServiceAgent(
String^ serviceUrl,
array<String^>^ allowedAuthMethods,
IPromptForCredentials^ credentialPrompter
)
public function ProfilesServiceAgent(
serviceUrl : String,
allowedAuthMethods : String[],
credentialPrompter : IPromptForCredentials
)
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.
- credentialPrompter
Type: Microsoft.CommerceServer..::.IPromptForCredentials
An IPromptForCredentials instance that will be invoked when the current user's default credentials are not valid for the current Web service.
Remarks
The ProfilesServiceAgent 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.