ServiceAgent Constructor (String)
Initializes a new instance of the ServiceAgent class for communicating with a specific Web service using the provided type of Web service proxy object.
Namespace: Microsoft.CommerceServer
Assembly: Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)
Syntax
'Declaration
Protected Sub New ( _
serviceUrl As String _
)
'Usage
Dim serviceUrl As String
Dim instance As New ServiceAgent(serviceUrl)
protected ServiceAgent(
string serviceUrl
)
protected:
ServiceAgent(
String^ serviceUrl
)
protected function ServiceAgent(
serviceUrl : String
)
Parameters
- serviceUrl
Type: System..::.String
The URL of the Web service this agent will run against.
Remarks
The returned ServiceAgent will use the DefaultAuthMethods to connect, and will not prompt on 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.