Share via


ProductCatalog.GetProductVariant (String, String) Method (BCL)

Use this method to retrieve the information for a product variant.

Definition

[Visual Basic .NET]

Overridable Public Function GetProductVariant( _ByValproductId As System.String, _
  ByValvariantId As System.String _
) As System.Data.DataSet

[C#]

public virtual System.Data.DataSet GetProductVariant(System.StringproductId,
  System.StringvariantId);

Parameters

[Visual Basic .NET]

  • productId
    The product ID. May not be null.
  • variantId
    The variant ID. May not be null.

[C#]

  • productId
    The product ID. May not be null.
  • variantId
    The variant ID. May not be null.

Return Value

A DataSet containing a single DataTable with the product variant properties.

Remarks

Throws a CatalogException on failure.

Throws an ArgumentNullException if either parameter is null.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.