GPSearchCriteria.Add Method (SearchProperty, SearchOperator, Object)
Adds a criterion for search operations.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public void Add(
SearchProperty searchProperty,
SearchOperator searchOperator,
object value
)
public:
void Add(
SearchProperty searchProperty,
SearchOperator searchOperator,
Object^ value
)
member Add :
searchProperty:SearchProperty *
searchOperator:SearchOperator *
value:Object -> unit
Public Sub Add (
searchProperty As SearchProperty,
searchOperator As SearchOperator,
value As Object
)
Parameters
searchProperty
Type: Microsoft.GroupPolicy.SearchPropertyA SearchProperty value that specifies the search property to evaluate.
searchOperator
Type: Microsoft.GroupPolicy.SearchOperatorA SearchOperator value that specifies the operation to use to evaluate the search property.
value
Type: System.ObjectThe value to evaluate the search property against.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | value is null. |
Remarks
The valid combinations of search property, search operator, and search value depend on the search in which the search criterion is being used. For more information about the valid combinations of property, operator, and value; see the Remarks section in IGPMSearchCriteria::Add Method. If the GPSearchCriteria contains multiple criteria, the search is performed using a logical and of the criteria.
See Also
GPSearchCriteria Class
Microsoft.GroupPolicy Namespace
Return to top