Delen via


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
Public method AddItem Creates new items in a project, adds existing files to a project, or causes Add Item wizards to be run.
Public method GenerateUniqueItemName Generates a unique document name for a given item.
Public method GetItemContext Returns the context of an item.
Public method GetMkDocument Returns a document moniker.
Public method IsDocumentInProject Determines whether a document is in the project.
Public method OpenItem Opens an item in the project.
Public method RemoveItem Removes an item from the project.
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace