IVsAsynchOpenFromSccProjectEvents.OnFilesDownloaded Method
Called during an asynchronous load to indicate one or more files have been downloaded.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function OnFilesDownloaded ( _
cFiles As Integer, _
rgpszFullPaths As String() _
) As Integer
'用途
Dim instance As IVsAsynchOpenFromSccProjectEvents
Dim cFiles As Integer
Dim rgpszFullPaths As String()
Dim returnValue As Integer
returnValue = instance.OnFilesDownloaded(cFiles, _
rgpszFullPaths)
int OnFilesDownloaded(
int cFiles,
string[] rgpszFullPaths
)
int OnFilesDownloaded(
[InAttribute] int cFiles,
[InAttribute] array<String^>^ rgpszFullPaths
)
abstract OnFilesDownloaded :
cFiles:int *
rgpszFullPaths:string[] -> int
function OnFilesDownloaded(
cFiles : int,
rgpszFullPaths : String[]
) : int
Parameters
- cFiles
Type: System.Int32
[in] Number of file names that are in the rgpszFullPaths array. This value should always be greater than 0.
- rgpszFullPaths
Type: array<System.String[]
[in] Array of physical paths of files that have been successfully loaded so far.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
If an error is returned, the source control package may cancel the load process if it so chooses (typically, if this method returns an error, something catastrophic has happened and the load should probably not continue).
Remarks
COM Signature
From vsshell80.idl
HRESULT OnFilesDownloaded(
[in] int cFiles,
[in, size_is(cFiles)] const LPCOLESTR rgpszFullPaths[]
);
As an alternative, a project can periodically call the IsLoadingContent method to determine if a load is complete.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsAsynchOpenFromSccProjectEvents Interface