Collapse AllExpand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: J# Code: JScript
GetSku Method (String, String)
Returns an InventorySku object associated with this InventoryCatalog and identified by the product identifier.
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
Visual Basic (Declaration)
Public Function GetSku ( _ productCatalogName As String, _ productId As String _ ) As InventorySku
Visual Basic (Usage)
Dim instance As InventoryCatalog Dim productCatalogName As String Dim productId As String Dim returnValue As InventorySku returnValue = instance.GetSku(productCatalogName, _ productId)
C#
public InventorySku GetSku( string productCatalogName, string productId )
Visual C++
public:
InventorySku^ GetSku(
String^ productCatalogName,
String^ productId
)
JScript
public function GetSku( productCatalogName : String, productId : String ) : InventorySku
Parameters
- productCatalogName
- Type: System..::.String
The product catalog name.
- productId
- Type: System..::.String
The product unique identifier.
Return Value
Type: Microsoft.CommerceServer.Inventory..::.InventorySkuAn InventorySku object associated with this InventoryCatalog.
Remarks
Returns an InventoryCatalog for the specified productId.
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.
See Also