InventoryOptions Constructor (Boolean, Boolean, Boolean, String)
Initializes a new instance of the InventoryOptions class and sets filter parameters.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Sub New ( _
filterOutOfStockSkus As Boolean, _
filterBackorderableSkus As Boolean, _
filterPreorderableSkus As Boolean, _
propertiesToReturn As String _
)
'Usage
Dim filterOutOfStockSkus As Boolean
Dim filterBackorderableSkus As Boolean
Dim filterPreorderableSkus As Boolean
Dim propertiesToReturn As String
Dim instance As New InventoryOptions(filterOutOfStockSkus, _
filterBackorderableSkus, filterPreorderableSkus, _
propertiesToReturn)
public InventoryOptions(
bool filterOutOfStockSkus,
bool filterBackorderableSkus,
bool filterPreorderableSkus,
string propertiesToReturn
)
public:
InventoryOptions(
bool filterOutOfStockSkus,
bool filterBackorderableSkus,
bool filterPreorderableSkus,
String^ propertiesToReturn
)
public function InventoryOptions(
filterOutOfStockSkus : boolean,
filterBackorderableSkus : boolean,
filterPreorderableSkus : boolean,
propertiesToReturn : String
)
Parameters
- filterOutOfStockSkus
Type: System..::.Boolean
A FilterOutOfStockSkus that specifies whether products that are out of stock are filtered.
- filterBackorderableSkus
Type: System..::.Boolean
A FilterBackorderableSkus that specifies whether products that can be back ordered are filtered.
- filterPreorderableSkus
Type: System..::.Boolean
A FilterPreorderableSkus that specifies whether products that can be preordered are filtered.
- propertiesToReturn
Type: System..::.String
A string containing the properties that should be returned from the inventory system.
Remarks
Stores the inventory options.
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.