ProductCatalog.AddSpecificationSearchClause

Ee823356.c++_on(en-US,CS.10).gifEe823356.vb_off(en-US,CS.10).gif

Use this method to add constraints to a specification search of this catalog.

Definition

Sub AddSpecificationSearchClause(strClause As String,pstrSearchHandle As Variant)

Parameters

strClause

A String that contains the clause to be added to the specified specification search.

pstrSearchHandle

A Variant that contains the state of the specification search to which the clause will be added. This variant is also used to return the updated state of the specification search.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM 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. In particular, the Description property may contain a text description of the error.

Remarks

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.

Example

myProductCatalog.AddSpecificationSearchClause strClause, pstrSearchHandle

See Also

ProductCatalog Object

ProductCatalog.BeginSpecificationSearch

ProductCatalog.GetSpecificationSearchClauses

ProductCatalog.PerformSpecificationSearch


All rights reserved.