IVsProject4 接口

定义

在项目上实现,以便更有效地查询项目信息。

public interface class IVsProject4 : Microsoft::VisualStudio::Shell::Interop::IVsProject3
public interface class IVsProject4 : Microsoft::VisualStudio::Shell::Interop::IVsProject3
__interface IVsProject4 : Microsoft::VisualStudio::Shell::Interop::IVsProject3
[System.Runtime.InteropServices.Guid("12A0D88D-D8FE-4637-8350-214B5C29DE31")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsProject4 : Microsoft.VisualStudio.Shell.Interop.IVsProject3
[<System.Runtime.InteropServices.Guid("12A0D88D-D8FE-4637-8350-214B5C29DE31")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsProject4 = interface
    interface IVsProject3
Public Interface IVsProject4
Implements IVsProject3
属性
实现

方法

AddItem(UInt32, VSADDITEMOPERATION, String, UInt32, String[], IntPtr, VSADDRESULT[])

在项目中创建新项,将现有文件添加到项目中,或导致运行 "添加项向导"。

AddItemWithSpecific(UInt32, VSADDITEMOPERATION, String, UInt32, String[], IntPtr, UInt32, Guid, String, Guid, VSADDRESULT[])

使用特定编辑器添加项。

ContainsFileEndingWith(String, Int32)

确定项目是否包含具有指定结尾的文件。

ContainsFileWithItemType(String, Int32)

确定项目是否包含其 MSBuild ItemType 与指定类型匹配的文件。

GenerateUniqueItemName(UInt32, String, String, String)

为给定项生成唯一的文档名称。

GetFilesEndingWith(String, UInt32, UInt32[], UInt32)

返回其名称以指定字符串结尾的文件的 ITEMIDs 数组。 匹配不区分大小写。

GetFilesWithItemType(String, UInt32, UInt32[], UInt32)

返回 VSITEMIDs 的数组,这些文件的 MSBuild ItemType 与给定的字符串匹配。 比较不区分大小写。

GetItemContext(UInt32, IServiceProvider)

返回项的上下文。

GetMkDocument(UInt32, String)

返回文档名字对象。

IsDocumentInProject(String, Int32, VSDOCUMENTPRIORITY[], UInt32)

确定文档是否在项目中。

OpenItem(UInt32, Guid, IntPtr, IVsWindowFrame)

打开项目中的项。

OpenItemWithSpecific(UInt32, UInt32, Guid, String, Guid, IntPtr, IVsWindowFrame)
RemoveItem(UInt32, UInt32, Int32)

从项目中移除一个项。

ReopenItem(UInt32, Guid, String, Guid, IntPtr, IVsWindowFrame)

重新打开项目中的项。

TransferItem(String, String, IVsWindowFrame)

将项从一个项目传输到另一个项目。 当前拥有要传输的项的项目对要接收传输的项的项目调用此方法。

适用于