Compartir a través de


IVsTrackProjectDocuments4 Interface

Used by projects to query the environment for permission to remove a file or directory in a solution.

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

Syntax

'Declaration
<GuidAttribute("53544C4D-19F7-4351-9168-240478819500")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsTrackProjectDocuments4
[GuidAttribute("53544C4D-19F7-4351-9168-240478819500")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsTrackProjectDocuments4
[GuidAttribute(L"53544C4D-19F7-4351-9168-240478819500")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IVsTrackProjectDocuments4
[<GuidAttribute("53544C4D-19F7-4351-9168-240478819500")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
type IVsTrackProjectDocuments4 =  interface end
public interface IVsTrackProjectDocuments4

The IVsTrackProjectDocuments4 type exposes the following members.

Methods

  Name Description
Public method OnAfterRemoveDirectoriesEx Called by a project after directories have been removed from the project.
Public method OnAfterRemoveFilesEx Called by a project after files have been removed from the project.
Public method OnQueryRemoveDirectoriesEx Called by a project to determine whether directories can be removed from the project.
Public method OnQueryRemoveFilesEx Called by a project to determine whether files can be removed from the project.

Top

Remarks

This interface enhances several methods defined in IVsTrackProjectDocuments2 by changing the parameter type from enumeration to integer to gain better flexibility. For example, new flags might be introduced in the future, and the methods defined in this interface can be reused.

This interface can be retrieved by a QueryInterface on the SID_SVsTrackProjectDocuments service object. Project systems can call these methods to cause IVsTrackProjectDocumentsEvents4 to be fired to the many clients that try to keep track of changes to the contents of a project.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace