The Progress method handles progress events that are raised during an export or import operation. The progress is passed as the current percentage of the total amount of data that will be exported or imported.
HRESULT Progress( [in] long Percentage );
A 32-bit integer that represents the current percentage of the total amount of data that will be exported or imported.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
Sub Progress( _ ByVal Percentage As Long _ )
A 32-bit integer that represents the current percentage of the total amount of data that will be exported or imported.
This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
Option Explicit Dim WithEvents arr As FPCArray Private Sub arr_Progress(ByVal Percentage As Long) Debug.Print "Export progress: " & Percentage & "%" End Sub Private Sub Form_Load() Const serverSpecificData = 4 Dim root As FPCLib.FPC Set root = New FPC Set arr = root.GetContainingArray() ' Export the configuration to a file with ' server-specific optional data. arr.ExportToFile "d:\Config.xml", serverSpecificData End Sub
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.