IProductCatalog::AddSpecificationSearchClause
Use this method to add constraints to a specification search of this catalog.
Definition
HRESULT IProductCatalog::AddSpecificationSearchClause(BSTRstrClause,VARIANT*pstrSearchHandle);
Parameters
strClause
[in] A BSTR that contains the clause to be added to the specified specification search.
pstrSearchHandle
[in] A VARIANT that contains the state of the specification search to which the clause will be added.
[out] A VARIANT used to return the updated state of the specification search.
Return Values
This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.
Error Values
This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.
Remarks
Upon successful completion, the pstrSearchHandle parameter will contain the name of the updated specification search.
The specification clause contained in the strClause parameter will be appended to the existing clauses and sent to SQL Server without any changes when the specification search is performed.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
See Also
IProductCatalog::BeginSpecificationSearch
IProductCatalog::GetSpecificationSearchClauses