IVsTrackProjectDocuments4.OnQueryRemoveFilesEx Method (IVsProject, Int32, String[], UInt32[], VSQUERYREMOVEFILERESULTS[], VSQUERYREMOVEFILERESULTS[])

 

Called by a project to determine whether files can be removed from the project.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

int OnQueryRemoveFilesEx(
	IVsProject pProject,
	int cFiles,
	string[] rgpszMkDocuments,
	uint[] rgFlags,
	VSQUERYREMOVEFILERESULTS[] pSummaryResult,
	VSQUERYREMOVEFILERESULTS[] rgResults
)

Parameters

pProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsProject

[in] Project containing the files to remove.

cFiles
Type: System.Int32

[in] Number of files to remove.

rgpszMkDocuments
Type: System.String[]

[in, size_is(cFiles)] Array of paths for the files to be removed.

rgFlags
Type: System.UInt32[]

[in, size_is(cFiles)] Array of flags. For a list of rgFlags values, see __VSQUERYREMOVEFILEFLAGS2.

pSummaryResult
Type: Microsoft.VisualStudio.Shell.Interop.VSQUERYREMOVEFILERESULTS[]

[out] Summary result object. This object is a summation of the yes and no results for the array of files passed in rgpszMkDocuments. If the result for a single file is no, then this parameter is equal to VSQUERYREMOVEFILERESULTS_RemoveNotOK; if the results for all files are yes, then this parameter is equal to VSQUERYREMOVEFILERESULTS_RemoveOK. For a list of pSummaryResult values, see VSQUERYREMOVEFILERESULTS.

rgResults
Type: Microsoft.VisualStudio.Shell.Interop.VSQUERYREMOVEFILERESULTS[]

[out, size_is(cFiles)] Array of results. If you pass in a null reference for this parameter, then only the summary result is returned (pSummaryResult). For a list of rgResults values, see VSQUERYREMOVEFILERESULTS.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Return to top
Show: