GetVariants Method (CatalogSearchOptions)
NOTE: This API is now obsolete.
(Obsolete) GetVariants is obsolete, use Variants instead. Retrieve a DataSet containing the product variants of this product family, with the filtering options applied.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
<ObsoleteAttribute("Product.GetVariants is obsolete, Use ProductFamily.Variants instead.")> _
Public Function GetVariants ( _
searchOptions As CatalogSearchOptions _
) As CatalogItemsDataSet
'Usage
Dim instance As Product
Dim searchOptions As CatalogSearchOptions
Dim returnValue As CatalogItemsDataSet
returnValue = instance.GetVariants(searchOptions)
[ObsoleteAttribute("Product.GetVariants is obsolete, Use ProductFamily.Variants instead.")]
public CatalogItemsDataSet GetVariants(
CatalogSearchOptions searchOptions
)
[ObsoleteAttribute(L"Product.GetVariants is obsolete, Use ProductFamily.Variants instead.")]
public:
CatalogItemsDataSet^ GetVariants(
CatalogSearchOptions^ searchOptions
)
public function GetVariants(
searchOptions : CatalogSearchOptions
) : CatalogItemsDataSet
Parameters
- searchOptions
Type: Microsoft.CommerceServer.Catalog..::.CatalogSearchOptions
Filtering options for this search.
Return Value
Type: Microsoft.CommerceServer.Catalog..::.CatalogItemsDataSet
A DataSet containing the properties a single product variant.
Remarks
A DataSet containing the properties a single 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.