The AddIPAddressFilter method creates a new FPCFilterExpression object representing an IP address filter expression in the collection and returns a reference to it.
HRESULT AddIPAddressFilter( [in] FpcFilterCriteria Criteria, [in] FpcFilterCondition Condition, [in] BSTR Value, IFPCFilterExpression** ppNewFilterExpression );
Value from the FpcFilterCriteria enumerated type that specifies the parameter (criteria) used in the filter expression.
When the FilterType property of the collection is set to fpcSessionsFilter, the only valid value for this parameter is fpcFilterByClientIP.
When the FilterType property of the collection is set to fpcLogViewerFilter, the following values are valid:
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:
String value specifying an IP address that, together with the Criteria and Condition parameters, forms the filter expression.
Address of an interface pointer that on return points to the new IFPCFilterExpression interface created.
This method can return one of the following:
Function AddIPAddressFilter( _ ByVal Criteria As FpcFilterCriteria, _ ByVal Condition As FpcFilterCondition, _ ByVal Value As String _ ) As FPCFilterExpression
Value from the FpcFilterCriteria enumerated type that specifies the parameter (criteria) used in the filter expression.
When the FilterType property of the collection is set to fpcSessionsFilter, the only valid value for this parameter is fpcFilterByClientIP.
When the FilterType property of the collection is set to fpcLogViewerFilter, the following values are valid:
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:
String value specifying an IP address that, together with the Criteria and Condition parameters, forms the filter expression.
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.
The FilterType property of the collection must be set to fpcSessionsFilter or fpcLogViewerFilter before running this method.
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. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.