Export (0) Print
Expand All

IVsTrackProjectDocuments2.OnAfterRemoveDirectories Method

This method is called by a project after directories have been removed from the project.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int OnAfterRemoveDirectories (
	[InAttribute] IVsProject pProject,
	[InAttribute] int cDirectories,
	[InAttribute] string[] rgpszMkDocuments,
	[InAttribute] VSREMOVEDIRECTORYFLAGS[] rgFlags
)
int OnAfterRemoveDirectories (
	/** @attribute InAttribute() */ IVsProject pProject, 
	/** @attribute InAttribute() */ int cDirectories, 
	/** @attribute InAttribute() */ String[] rgpszMkDocuments, 
	/** @attribute InAttribute() */ VSREMOVEDIRECTORYFLAGS[] rgFlags
)
function OnAfterRemoveDirectories (
	pProject : IVsProject, 
	cDirectories : int, 
	rgpszMkDocuments : String[], 
	rgFlags : VSREMOVEDIRECTORYFLAGS[]
) : int

Parameters

pProject

[in] Project from which the directories have been removed.

cDirectories

[in] Number of directories that were removed.

rgpszMkDocuments

[in, size_is(cDirectories)] Array of paths for the directories that were removed.

rgFlags

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

Return Value

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

COM Signature

From IVsTrackProjectDocuments2.idl

HRESULT IVsTrackProjectDocuments2::OnAfterRemoveDirectories(
   [in] IVsProject *pProject,
   [in] int cDirectories,
   [in, size_is(cDirectories)] const LPCOLESTR rgpszMkDocuments[],
   [in, size_is(cDirectories)] const VSREMOVEDIRECTORYFLAGS rgFlags[]
);

The project calls this method after it has removed directories to notify the environment that the directories have been removed.

NoteNote

All directory calls are optional. However, if you call one of the OnQuery* directory methods, then you are required to call the corresponding OnAfter* directory method if the OnQuery* call was successful.

Community Additions

ADD
Show:
© 2014 Microsoft