次の方法で共有


FlavoredProject.IVsTrackProjectDocumentsEvents2.OnQueryRemoveDirectories Method

Raised to determine whether directories can be removed from the project. Not used.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'宣言
Private Function OnQueryRemoveDirectories ( _
    pProject As IVsProject, _
    cDirectories As Integer, _
    rgpszMkDocuments As String(), _
    rgFlags As VSQUERYREMOVEDIRECTORYFLAGS(), _
    pSummaryResult As VSQUERYREMOVEDIRECTORYRESULTS(), _
    rgResults As VSQUERYREMOVEDIRECTORYRESULTS() _
) As Integer Implements IVsTrackProjectDocumentsEvents2.OnQueryRemoveDirectories
'使用
Dim instance As FlavoredProject
Dim pProject As IVsProject
Dim cDirectories As Integer
Dim rgpszMkDocuments As String()
Dim rgFlags As VSQUERYREMOVEDIRECTORYFLAGS()
Dim pSummaryResult As VSQUERYREMOVEDIRECTORYRESULTS()
Dim rgResults As VSQUERYREMOVEDIRECTORYRESULTS()
Dim returnValue As Integer

returnValue = CType(instance, IVsTrackProjectDocumentsEvents2).OnQueryRemoveDirectories(pProject, _
    cDirectories, rgpszMkDocuments, _
    rgFlags, pSummaryResult, rgResults)
int IVsTrackProjectDocumentsEvents2.OnQueryRemoveDirectories(
    IVsProject pProject,
    int cDirectories,
    string[] rgpszMkDocuments,
    VSQUERYREMOVEDIRECTORYFLAGS[] rgFlags,
    VSQUERYREMOVEDIRECTORYRESULTS[] pSummaryResult,
    VSQUERYREMOVEDIRECTORYRESULTS[] rgResults
)
private:
virtual int OnQueryRemoveDirectories(
    IVsProject^ pProject, 
    int cDirectories, 
    array<String^>^ rgpszMkDocuments, 
    array<VSQUERYREMOVEDIRECTORYFLAGS>^ rgFlags, 
    array<VSQUERYREMOVEDIRECTORYRESULTS>^ pSummaryResult, 
    array<VSQUERYREMOVEDIRECTORYRESULTS>^ rgResults
) sealed = IVsTrackProjectDocumentsEvents2::OnQueryRemoveDirectories
private abstract OnQueryRemoveDirectories : 
        pProject:IVsProject * 
        cDirectories:int * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSQUERYREMOVEDIRECTORYFLAGS[] * 
        pSummaryResult:VSQUERYREMOVEDIRECTORYRESULTS[] * 
        rgResults:VSQUERYREMOVEDIRECTORYRESULTS[] -> int 
private override OnQueryRemoveDirectories : 
        pProject:IVsProject * 
        cDirectories:int * 
        rgpszMkDocuments:string[] * 
        rgFlags:VSQUERYREMOVEDIRECTORYFLAGS[] * 
        pSummaryResult:VSQUERYREMOVEDIRECTORYRESULTS[] * 
        rgResults:VSQUERYREMOVEDIRECTORYRESULTS[] -> int 
JScript does not support explicit interface implementations.

Parameters

  • cDirectories
    Type: System.Int32
    The number of directories affected.
  • rgpszMkDocuments
    Type: array<System.String[]
    An array of paths of the directories.

Return Value

Type: System.Int32
S_OK().

Implements

IVsTrackProjectDocumentsEvents2.OnQueryRemoveDirectories(IVsProject, Int32, array<String[], array<VSQUERYREMOVEDIRECTORYFLAGS[], array<VSQUERYREMOVEDIRECTORYRESULTS[], array<VSQUERYREMOVEDIRECTORYRESULTS[])

Remarks

This event is not used.

.NET Framework Security

See Also

Reference

FlavoredProject Class

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace