Delen via


OrderSiteAgent Constructor (String, Boolean, String)

Initializes a new instance of the OrderSiteAgent class.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub New ( _
    siteName As String, _
    disableAuthorization As Boolean, _
    authorizationPolicyPath As String _
)
'Usage
Dim siteName As String
Dim disableAuthorization As Boolean
Dim authorizationPolicyPath As String

Dim instance As New OrderSiteAgent(siteName, _
    disableAuthorization, authorizationPolicyPath)
public OrderSiteAgent(
    string siteName,
    bool disableAuthorization,
    string authorizationPolicyPath
)
public:
OrderSiteAgent(
    String^ siteName, 
    bool disableAuthorization, 
    String^ authorizationPolicyPath
)
public function OrderSiteAgent(
    siteName : String, 
    disableAuthorization : boolean, 
    authorizationPolicyPath : String
)

Parameters

  • siteName
    Type: System..::.String
    The name of the site for which to read resource configuration information. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
  • disableAuthorization
    Type: System..::.Boolean
    Flag to enable/disable authorization. true to disable authorization checks; otherwise false.
  • authorizationPolicyPath
    Type: System..::.String
    Specifies the path where the authorization policy for the site can be found. This path can be a full path or a relative path. If a full path is not specified then the path will be relative to the physical directory of the Web service.

Exceptions

Exception Condition
ArgumentNullException

siteName is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Class which should be used to create OrderManagementContext instance in the non-web environment.

Permissions

See Also

Reference

OrderSiteAgent Class

OrderSiteAgent Members

OrderSiteAgent Overload

Microsoft.CommerceServer.Orders Namespace