IFPCPolicyRule4::FindMatchedElements method
Applies to: desktop apps only
The FindMatchedElements method finds matched elements in the policy rule.
Syntax
HRESULT FindMatchedElements(
[in] BSTR searchCriteria,
[in] String searchCriteria,
[out] BSTR *pMatchedElements
);
FPCPolicyRule.FindMatchedElements( _
ByVal searchCriteria As BSTR, _
ByVal searchCriteria As String, _
ByRef pMatchedElements As BSTR _
) As String
Parameters
searchCriteria [in]
C++ BSTR that specifies the search criteria. This string either contains literal text to search for, or criteria given as "<property>:<value>" terms.
VB String that specifies the search criteria. This string either contains literal text to search for, or criteria given as "<property>:<value>" terms.
pMatchedElements [out]
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
C++
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.
VB
String that contains a textual representation of the matched elements. If no matches are found, an empty string is returned.
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only) |
Version |
Forefront Threat Management Gateway (TMG) 2010 |
IDL |
Msfpccom.idl |
DLL |
Msfpccom.dll |
See also
Build date: 7/12/2010