FindMatchedElements Method of the IFPCPolicyRule4 Interface
The FindMatchedElements method finds matched elements in the policy rule.
C++
Syntax
HRESULT FindMatchedElements(
[in] BSTR searchCriteria,
[out] BSTR* pMatchedElements
);
Parameters
searchCriteria
BSTR that specifies the search criteria. This string either contains literal text to search for, or criteria given as "<property>:<value>" terms.pMatchedElements
Pointer to a BSTR that on return contains a textual representation of the matched elements. If pMatchedElements is empty, no matches were found.
Return Value
This method can return one of the following:
- S_OK, indicating that the operation succeeded.
- An error code, indicating that the operation failed. In this case, for example, when no matches are found, the [out] parameter returned is an empty string.
Visual Basic
Syntax
Function FindMatchedElements( _
ByVal searchCriteria As String _
) As String
Parameters
- searchCriteria
String that specifies the search criteria. This string either contains literal text to search for, or criteria given as "<property>:<value>" terms.
Return Value
String that contains a textual representation of the matched elements. If no matches are found, an empty string is returned.
Requirements
Client | Requires Windows 7 or Windows Vista. |
Server | Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2. |
Version | Requires Forefront Threat Management Gateway (TMG) 2010. |
IDL | Declared in Msfpccom.idl. |
DLL | Requires Msfpccom.dll. |
See Also
Send comments about this topic to Microsoft
Build date: 6/30/2010