The MoveUp method moves the specified filter one step up the list of filters.
HRESULT MoveUp( [in] long Index );
Required. Index (the current position indicated by the Order property) of the filter to move down.
Sub MoveUp( _ ByVal Index As Long _ )
Required. Index (the current position indicated by the Order property) of the filter to move down.
This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
' Create the root object. Dim root ' The FPCLib.FPC root object Set root = CreateObject("FPC.Root") ' Declare the other objects needed. Dim tmgArray ' An FPCArray object Dim filters ' An FPCWebFilters collection ' Get references to the array object ' and the Web filters collection. Set tmgArray = root.GetContainingArray() Set filters = tmgArray.Extensions.WebFilters ' Move the last Web filter in the collection ' one step up the list of Web filters. If filters.Count > 1 Then filters.MoveUp filters.Count filters.Save WScript.Echo "Done!" Else WSCript.Echo "Two or more Web filters are needed." End If
This method can be used to move a Web filter only into the positions of Web filters that have the same priority.
The MoveUp method is applicable only to the FPCWebFilters collection in an array configuration. The FPCWebFilters collection in the enterprise configuration is not ordered, and this method is disabled in it.
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.