Solid Edge Assembly Type Library
AddCriteria Method
Member of the QueryPropertyConstants constant set that specifies the type of property to be added to the query criteria (for example, author, category, comments, and so forth).
The name of a custom property to be added to the query criteria.
Member of the QueryConditionConstants constant set that specifies the items to be returned (for example, items that contain the query criteria, items that match the criteria, or items that do not match the criteria).
Specifies the information to which the QueryProperty is to be compared.
Description
Adds new criteria to the referenced Query object.
Syntax
Visual Basic
Public Sub AddCriteria( _
   ByVal QueryProperty As QueryPropertyConstants, _
   ByVal CustomPropertyName As String, _
   ByVal QueryCondition As QueryConditionConstants, _
   ByVal Value As Variant _
) 
Parameters
QueryProperty
ValueDescription
seQueryPropertyAuthor
seQueryPropertyCategory
seQueryPropertyComments
seQueryPropertyCompany
seQueryPropertyCustom
seQueryPropertyDocumentNumber
seQueryPropertyKeywords
seQueryPropertyManager
seQueryPropertyMaterial
seQueryPropertyName
seQueryPropertyProject
seQueryPropertyReference
seQueryPropertyRevisionNumber
seQueryPropertyStatus
seQueryPropertySubject
seQueryPropertyTitle
Member of the QueryPropertyConstants constant set that specifies the type of property to be added to the query criteria (for example, author, category, comments, and so forth).
CustomPropertyName
The name of a custom property to be added to the query criteria.
QueryCondition
ValueDescription
seQueryConditionContains
seQueryConditionIs
seQueryConditionIsNot
Member of the QueryConditionConstants constant set that specifies the items to be returned (for example, items that contain the query criteria, items that match the criteria, or items that do not match the criteria).
Value
Specifies the information to which the QueryProperty is to be compared.
See Also

Query Object  | Query Members

Send comments on this topic.