ServiceAgent Constructor (Uri)

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 ( _
    serviceUri As Uri _
)
'Usage
Dim serviceUri As Uri

Dim instance As New ServiceAgent(serviceUri)
protected ServiceAgent(
    Uri serviceUri
)
protected:
ServiceAgent(
    Uri^ serviceUri
)
protected function ServiceAgent(
    serviceUri : Uri
)

Parameters

  • serviceUri
    Type: System..::.Uri
    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

See Also

Reference

ServiceAgent Class

ServiceAgent Members

ServiceAgent Overload

Microsoft.CommerceServer Namespace