שתף באמצעות


OrderSiteAgent Constructor (String, Boolean, String, Int32)

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, _
    searchResultsLimit As Integer _
)
'Usage
Dim siteName As String
Dim disableAuthorization As Boolean
Dim authorizationPolicyPath As String
Dim searchResultsLimit As Integer

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

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.
  • searchResultsLimit
    Type: System..::.Int32
    Maximum number of records that can be returned by any search API

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