GetSkus Method (String, SearchOptions, Int32)
Returns an InventorySkuCollection containing the inventory SKUs matching the specified criteria. The total number of records matching the search is available.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function GetSkus ( _
searchClause As String, _
searchOptions As SearchOptions, _
<OutAttribute> ByRef totalRecords As Integer _
) As InventorySkuCollection
'Usage
Dim instance As InventoryCatalog
Dim searchClause As String
Dim searchOptions As SearchOptions
Dim totalRecords As Integer
Dim returnValue As InventorySkuCollection
returnValue = instance.GetSkus(searchClause, _
searchOptions, totalRecords)
public InventorySkuCollection GetSkus(
string searchClause,
SearchOptions searchOptions,
out int totalRecords
)
public:
InventorySkuCollection^ GetSkus(
String^ searchClause,
SearchOptions^ searchOptions,
[OutAttribute] int% totalRecords
)
public function GetSkus(
searchClause : String,
searchOptions : SearchOptions,
totalRecords : int
) : InventorySkuCollection
Parameters
- searchClause
Type: System..::.String
A SQL expression to filter the inventory SKUs.
- searchOptions
Type: Microsoft.CommerceServer.Catalog..::.SearchOptions
The InventorySku used for the search.
- totalRecords
Type: System..::.Int32%
The total number of inventory SKUs that match the query.
Return Value
Type: Microsoft.CommerceServer.Inventory..::.InventorySkuCollection
An InventorySkuCollection containing the inventory SKUs that match the searchClause and filtered by the searchOptions.
Remarks
Returns an InventorySkuCollection containing the inventory SKUs that match the in the searchClause and filtered by the searchOptions. The total number of SKUs matching the searchClause is contained within totalRecords.
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.