ServiceAgent Constructor (String, String[])
Initializes a new instance of the ServiceAgent class for communicating with a specific Web service with the specified allowable authentication methods.
Namespace: Microsoft.CommerceServer
Assembly: Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Syntax
'Declaration
Protected Sub New ( _
serviceUrl As String, _
allowedAuthMethods As String() _
)
'Usage
Dim serviceUrl As String
Dim allowedAuthMethods As String()
Dim instance As New ServiceAgent(serviceUrl, _
allowedAuthMethods)
protected ServiceAgent(
string serviceUrl,
string[] allowedAuthMethods
)
protected:
ServiceAgent(
String^ serviceUrl,
array<String^>^ allowedAuthMethods
)
protected function ServiceAgent(
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 returned ServiceAgent 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.