FindMatchedElements Method of the IFPCRuleElements4 Interface

The FindMatchedElements method finds matched rule elements.

[C++]

Syntax

HRESULT FindMatchedElements(
  [in]   BSTR searchCriteria,
  [out]  BSTR* pMatchedElements
);

Parameters

searchCriteria

A BSTR that specifies the search criteria. This string either contains literal text to search for, or a list of criteria elements separated by white space, each given as "<property>:<value>". The whole criteria is fulfilled when all its elements are statisfied.

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 returns S_OK if the call is successful; otherwise, it returns an error code.

[Visual Basic]

Syntax

Function FindMatchedElements( _
  ByVal searchCriteria As String, _
  ByRef pMatchedElements As String _
) As String

Parameters

searchCriteria

A String that specifies the search criteria. This string either contains literal text to search for, or a list of criteria elements separated by white space, each given as "<property>:<value>". The whole criteria is fulfilled when all its elements are statisfied.

pMatchedElements

Reference to a String that on return contains a textual representation of the matched elements. If pMatchedElements is empty, no matches were found.

Return Value

A String that contains a textual representation of the matched elements. If pMatchedElements is empty, no matches were found.

Requirements

Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCRuleElements


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.