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

  • value
    Type: System.Object

    The 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