AddNumericFilter Method of the IFPCFilterExpressions Interface

The AddNumericFilter method creates a new FPCFilterExpression object representing a numeric value filter expression in the collection and returns a reference to it.

[C++]

Syntax

HRESULT AddNumericFilter(
  [in]  FpcFilterCriteria Criteria,
  [in]  FpcFilterCondition Condition,
  [in]  long Value,
		IFPCFilterExpression** ppNewFilterExpression
);

Parameters

Criteria

Value from the FpcFilterCriteria enumerated type that specifies the parameter (criteria) used in the filter expression.

The following values are valid:

  • fpcFilterByBytesReceived
  • fpcFilterByBytesSent
  • fpcFilterByCacheInfo
  • fpcFilterByDestHostPort
  • fpcFilterByErrorInfo
  • fpcFilterByHTTPCode
  • fpcFilterByProcessingTime
  • fpcFilterByResultCode
  • fpcFilterBySrcPort
Condition

Value from the FpcFilterCondition enumerated type that specifies the required relationship between the parameter (criteria) and the value included in the filter expression.

The following values may be used, but not all of the values are valid for each value of the Criteria parameter:

  • fpcEqual
  • fpcNotEqual
  • fpcGreaterOrEqual
  • fpcLessOrEqual
Value

A 32-bit integer value that, together with the Criteria and Condition parameters, forms the filter expression.

ppNewFilterExpression

Address of an interface pointer that on return points to the new IFPCFilterExpression interface created.

Return Value

This method can return one of the following:

[Visual Basic]

Syntax

Function AddNumericFilter( _
  ByVal Criteria As FpcFilterCriteria, _
  ByVal Condition As FpcFilterCondition, _
  ByVal Value As Long _
) As FPCFilterExpression

Parameters

Criteria

Value from the FpcFilterCriteria enumerated type that specifies the parameter (criteria) used in the filter expression.

The following values are valid:

  • fpcFilterByBytesReceived
  • fpcFilterByBytesSent
  • fpcFilterByCacheInfo
  • fpcFilterByDestHostPort
  • fpcFilterByErrorInfo
  • fpcFilterByHTTPCode
  • fpcFilterByProcessingTime
  • fpcFilterByResultCode
  • fpcFilterBySrcPort
Condition

Value from the FpcFilterCondition enumerated type that specifies the required relationship between the parameter (criteria) and the value included in the filter expression.

The following values may be used, but not all of the values are valid for each value of the Criteria parameter:

  • fpcEqual
  • fpcNotEqual
  • fpcGreaterOrEqual
  • fpcLessOrEqual
Value

A 32-bit integer value that, together with the Criteria and Condition parameters, forms the filter expression.

Return Value

This method returns a reference to the FPCFilterExpression object if successful. Otherwise, an error is raised that can be intercepted by using an error handler.

Remarks

The FilterType property of the collection must be set to fpcLogViewerFilter before running this method.

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

FPCFilterExpressions


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.

508 Resource Limit Is Reached

Resource Limit Is Reached

The website is temporarily unable to service your request as it exceeded resource limit. Please try again later.