IVsTrackProjectDocuments2.OnAfterAddFiles Method
This method is called by a project after files have been added to the project.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Déclaration
Function OnAfterAddFiles ( _
pProject As IVsProject, _
cFiles As Integer, _
rgpszMkDocuments As String() _
) As Integer
'Utilisation
Dim instance As IVsTrackProjectDocuments2
Dim pProject As IVsProject
Dim cFiles As Integer
Dim rgpszMkDocuments As String()
Dim returnValue As Integer
returnValue = instance.OnAfterAddFiles(pProject, _
cFiles, rgpszMkDocuments)
int OnAfterAddFiles(
IVsProject pProject,
int cFiles,
string[] rgpszMkDocuments
)
int OnAfterAddFiles(
[InAttribute] IVsProject^ pProject,
[InAttribute] int cFiles,
[InAttribute] array<String^>^ rgpszMkDocuments
)
abstract OnAfterAddFiles :
pProject:IVsProject *
cFiles:int *
rgpszMkDocuments:string[] -> int
function OnAfterAddFiles(
pProject : IVsProject,
cFiles : int,
rgpszMkDocuments : String[]
) : int
Parameters
- pProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsProject
[in] Project to which the files have been added.
- cFiles
Type: System.Int32
[in] Number of files that were added.
- rgpszMkDocuments
Type: array<System.String[]
[in, size_is(cFiles)] Array of paths for the files that were processed. This is the same size as cFiles.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From IVsTrackProjectDocuments2.idl
HRESULT IVsTrackProjectDocuments2::OnAfterAddFiles(
[in] IVsProject *pProject,
[in] int cFiles,
[in, size_is(cFiles)] const LPCOLESTR rgpszMkDocuments[]
);
The project must call this method after it has added files to notify the environment that the files have been added.
.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
IVsTrackProjectDocuments2 Interface