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
- productId
Type: System..::.String
Product Id of the product family of the variant.
- variantId
Type: System..::.String
The Variant Id of the variant.
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
- 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.