IVsProject2 Interface
Provides the ability to remove and reopen items in a project, in addition to the methods in the IVsProject interface.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("4AF886C3-7796-4C81-A174-4A87080DEE58")> _
Public Interface IVsProject2 _
Inherits IVsProject
[InterfaceTypeAttribute()]
[GuidAttribute("4AF886C3-7796-4C81-A174-4A87080DEE58")]
public interface IVsProject2 : IVsProject
[InterfaceTypeAttribute()]
[GuidAttribute(L"4AF886C3-7796-4C81-A174-4A87080DEE58")]
public interface class IVsProject2 : IVsProject
[<InterfaceTypeAttribute()>]
[<GuidAttribute("4AF886C3-7796-4C81-A174-4A87080DEE58")>]
type IVsProject2 =
interface
interface IVsProject
end
public interface IVsProject2 extends IVsProject
The IVsProject2 type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddItem | Creates new items in a project, adds existing files to a project, or causes Add Item wizards to be run. | |
GenerateUniqueItemName | Generates a unique document name for a given item. | |
GetItemContext | Returns the context of an item. | |
GetMkDocument | Returns a document moniker. | |
IsDocumentInProject | Determines whether a document is in the project. | |
OpenItem | Opens an item in the project. | |
RemoveItem | Removes an item from the project. | |
ReopenItem | Reopens an item in the project. |
Top
Remarks
Notes to Implementers
Implement IVsProject2 when needing to remove or reopen items or documents in a project using a specific editor, or to transfer an item between projects.