GetSku Method (String, String, String)
Returns an InventorySku object associated with this InventoryCatalog and identified by the product identifier and variant.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function GetSku ( _
productCatalogName As String, _
productId As String, _
variantId As String _
) As InventorySku
'Usage
Dim instance As InventoryCatalog
Dim productCatalogName As String
Dim productId As String
Dim variantId As String
Dim returnValue As InventorySku
returnValue = instance.GetSku(productCatalogName, _
productId, variantId)
public InventorySku GetSku(
string productCatalogName,
string productId,
string variantId
)
public:
InventorySku^ GetSku(
String^ productCatalogName,
String^ productId,
String^ variantId
)
public function GetSku(
productCatalogName : String,
productId : String,
variantId : String
) : InventorySku
Parameters
- productCatalogName
Type: System..::.String
The product catalog name.
- productId
Type: System..::.String
The product unique identifier.
- variantId
Type: System..::.String
The variant unique identifier.
Return Value
Type: Microsoft.CommerceServer.Inventory..::.InventorySku
An InventorySku object associated with this InventoryCatalog.
Remarks
Returns an InventoryCatalog for the specified productId and variantId.
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.