Partager via


Evaluate method of the MSFT_SomFilter class

The Evaluate instance method evaluates the MSFT_SomFilter object Rules as to whether they apply to this machine.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax

Uint32 Evaluate();

Parameters

This method has no parameters.

Return value

Returns a value of S_OK (0) if all the queries expressed in the rules of the MSFT_SomFilter object return results. If one or more of the queries in the rules does not return results, S_FALSE (1) is returned. If an error occurs, an applicable WMI error code is returned.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\policy
MOF
PolicMan.mof
DLL
PolicMan.dll

See also

MSFT_SomFilter

MSFT_Rule

BatchEvaluate Method in Class MSFT_SomFilter