IVsTrackProjectDocuments2.OnAfterAddDirectoriesEx Method
This method is called by a project after directories have been added to the project. This method is equivalent to OnAfterAddDirectories, but it also takes flags.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function OnAfterAddDirectoriesEx ( _
pProject As IVsProject, _
cDirectories As Integer, _
rgpszMkDocuments As String(), _
rgFlags As VSADDDIRECTORYFLAGS() _
) As Integer
'用途
Dim instance As IVsTrackProjectDocuments2
Dim pProject As IVsProject
Dim cDirectories As Integer
Dim rgpszMkDocuments As String()
Dim rgFlags As VSADDDIRECTORYFLAGS()
Dim returnValue As Integer
returnValue = instance.OnAfterAddDirectoriesEx(pProject, _
cDirectories, rgpszMkDocuments, _
rgFlags)
int OnAfterAddDirectoriesEx(
IVsProject pProject,
int cDirectories,
string[] rgpszMkDocuments,
VSADDDIRECTORYFLAGS[] rgFlags
)
int OnAfterAddDirectoriesEx(
[InAttribute] IVsProject^ pProject,
[InAttribute] int cDirectories,
[InAttribute] array<String^>^ rgpszMkDocuments,
[InAttribute] array<VSADDDIRECTORYFLAGS>^ rgFlags
)
abstract OnAfterAddDirectoriesEx :
pProject:IVsProject *
cDirectories:int *
rgpszMkDocuments:string[] *
rgFlags:VSADDDIRECTORYFLAGS[] -> int
function OnAfterAddDirectoriesEx(
pProject : IVsProject,
cDirectories : int,
rgpszMkDocuments : String[],
rgFlags : VSADDDIRECTORYFLAGS[]
) : int
Parameters
- pProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsProject
[in] Project for which the directories have been added.
- cDirectories
Type: System.Int32
[in] Number of directories that were added.
- rgpszMkDocuments
Type: array<System.String[]
[in] Array of paths for the directories that were added. This is the same size as cFiles.
- rgFlags
Type: array<Microsoft.VisualStudio.Shell.Interop.VSADDDIRECTORYFLAGS[]
[in] Array of flags. For a list of rgFlags values, see VSADDDIRECTORYFLAGS.
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::OnAfterAddDirectoriesEx(
[in] IVsProject *pProject,
[in] int cDirectories,
[in, size_is(cDirectories)] const LPCOLESTR rgpszMkDocuments[],
[in, size_is(cDirectories)] const VSADDDIRECTORYFLAGS rgFlags[]
);
The project calls this method after it has added directories to notify the environment that the directories have been added.
注意
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.
.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