Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCFilterExpressions::AddNumericFilter[C++]

FPCFilterExpressions.AddNumericFilter [Visual Basic]

[C++]

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

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

Parameters

Criteria
[in] 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
  • fpcFilterByProcessingTime
  • fpcFilterByResultCode
  • fpcFilterBySrcPort
Condition
[in] 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 are valid:

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
[in] 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 Values

This method can return one of the following:

Remarks

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

[Visual Basic]

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

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

Parameters

Criteria
[in] 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
  • fpcFilterByProcessingTime
  • fpcFilterByResultCode
  • fpcFilterBySrcPort
Condition
[in] 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 are valid:

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
[in] A 32-bit integer value that, together with the Criteria and Condition parameters, forms the filter expression.

Return Values

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

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCFilterExpressions