다음을 통해 공유


GetProductVariant Method

NOTE: This API is now obsolete.

(Obsolete) Use GetVariant() and Variant.Information instead. Gets a product variant record from the catalog system.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
<ObsoleteAttribute("GetProductVariant is obsolete, use GetVariant() and Variant.Information instead.")> _
Public Function GetProductVariant ( _
    productId As String, _
    variantId As String _
) As DataSet
'Usage
Dim instance As ProductCatalog
Dim productId As String
Dim variantId As String
Dim returnValue As DataSet

returnValue = instance.GetProductVariant(productId, _
    variantId)
[ObsoleteAttribute("GetProductVariant is obsolete, use GetVariant() and Variant.Information instead.")]
public DataSet GetProductVariant(
    string productId,
    string variantId
)
[ObsoleteAttribute(L"GetProductVariant is obsolete, use GetVariant() and Variant.Information instead.")]
public:
DataSet^ GetProductVariant(
    String^ productId, 
    String^ variantId
)
public function GetProductVariant(
    productId : String, 
    variantId : String
) : DataSet

Parameters

Return Value

Type: System.Data..::.DataSet
A DataSet that contains the properties of the variant.

Remarks

Use this method to retrieve the properties of a specified product variant.

Permissions

See Also

Reference

ProductCatalog Class

ProductCatalog Members

Microsoft.CommerceServer.Catalog Namespace