GetProducts Method (CatalogSearchOptions)
NOTE: This API is now obsolete.
(Obsolete) Retrieve a DataSet containing the child products of this category using the searchOptions parameter to determine how the results are returned.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
<ObsoleteAttribute("Category.GetProducts has been replaced by Category.ChildProducts")> _
Public Function GetProducts ( _
searchOptions As CatalogSearchOptions _
) As DataSet
'Usage
Dim instance As Category
Dim searchOptions As CatalogSearchOptions
Dim returnValue As DataSet
returnValue = instance.GetProducts(searchOptions)
[ObsoleteAttribute("Category.GetProducts has been replaced by Category.ChildProducts")]
public DataSet GetProducts(
CatalogSearchOptions searchOptions
)
[ObsoleteAttribute(L"Category.GetProducts has been replaced by Category.ChildProducts")]
public:
DataSet^ GetProducts(
CatalogSearchOptions^ searchOptions
)
public function GetProducts(
searchOptions : CatalogSearchOptions
) : DataSet
Parameters
- searchOptions
Type: Microsoft.CommerceServer.Catalog..::.CatalogSearchOptions
Specify the filtering options for child categories.
Return Value
Type: System.Data..::.DataSet
The DataSet contains a single DataTable with the product properties data.
Remarks
A CatalogSearchOptions object can be provided to catalog methods that perform a database search to specify which records to return, how to sort the result set, and so on. Note that not all methods respect all of the settings. When the site is run in Debug mode or Checked mode, a warning message will be logged to the active DebugContext object whenever a setting has been made that cannot be respected.
GetProducts has been replaced by Category.Products
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.