OrderServiceAgent Constructor (String, String[])
Initializes a new instance of the OrderServiceAgent class for communicating with a specific Web service.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
serviceUrl As String, _
allowedAuthModes As String() _
)
'Usage
Dim serviceUrl As String
Dim allowedAuthModes As String()
Dim instance As New OrderServiceAgent(serviceUrl, _
allowedAuthModes)
public OrderServiceAgent(
string serviceUrl,
string[] allowedAuthModes
)
public:
OrderServiceAgent(
String^ serviceUrl,
array<String^>^ allowedAuthModes
)
public function OrderServiceAgent(
serviceUrl : String,
allowedAuthModes : String[]
)
Parameters
- serviceUrl
Type: System..::.String
The URL of the Web service this agent will run against.
- allowedAuthModes
Type: array<System..::.String>[]()[]
A list of authorization modes which are allowed.
Remarks
The OrderServiceAgent serves to abstract data from the user interface. The OrderServiceAgent provides authentication and SOAP proxy services when initialized to communicate with and authenticate against a Web service.
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.