GetSkus Method (String, SearchOptions)
Returns an InventorySkuCollection containing the inventory SKUs matching the specified criteria.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function GetSkus ( _
searchClause As String, _
searchOptions As SearchOptions _
) As InventorySkuCollection
'Usage
Dim instance As InventoryCatalog
Dim searchClause As String
Dim searchOptions As SearchOptions
Dim returnValue As InventorySkuCollection
returnValue = instance.GetSkus(searchClause, _
searchOptions)
public InventorySkuCollection GetSkus(
string searchClause,
SearchOptions searchOptions
)
public:
InventorySkuCollection^ GetSkus(
String^ searchClause,
SearchOptions^ searchOptions
)
public function GetSkus(
searchClause : String,
searchOptions : SearchOptions
) : 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.
Return Value
Type: Microsoft.CommerceServer.Inventory..::.InventorySkuCollection
An InventorySkuCollection containing the inventory SKUs that match the in the searchClause and filtered by the searchOptions.
Remarks
Returns an InventorySkuCollection containing the inventory SKUs that match the searchClause and filtered by the searchOptions.
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.