다음을 통해 공유


IVsProject2 Interface

Definition

Provides the ability to remove and reopen items in a project, in addition to the methods in the IVsProject interface.

public interface class IVsProject2 : Microsoft::VisualStudio::Shell::Interop::IVsProject
public interface class IVsProject2 : Microsoft::VisualStudio::Shell::Interop::IVsProject
__interface IVsProject2 : Microsoft::VisualStudio::Shell::Interop::IVsProject
[System.Runtime.InteropServices.Guid("4AF886C3-7796-4C81-A174-4A87080DEE58")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsProject2 : Microsoft.VisualStudio.Shell.Interop.IVsProject
[System.Runtime.InteropServices.Guid("4AF886C3-7796-4C81-A174-4A87080DEE58")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsProject2 : Microsoft.VisualStudio.Shell.Interop.IVsProject
[<System.Runtime.InteropServices.Guid("4AF886C3-7796-4C81-A174-4A87080DEE58")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsProject2 = interface
    interface IVsProject
[<System.Runtime.InteropServices.Guid("4AF886C3-7796-4C81-A174-4A87080DEE58")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsProject2 = interface
    interface IVsProject
Public Interface IVsProject2
Implements IVsProject
Derived
Attributes
Implements

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.

Methods

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

Creates new items in a project, adds existing files to a project, or causes Add Item wizards to be run.

GenerateUniqueItemName(UInt32, String, String, String)

Generates a unique document name for a given item.

GetItemContext(UInt32, IServiceProvider)

Returns the context of an item.

GetMkDocument(UInt32, String)

Returns a document moniker.

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

Determines whether a document is in the project.

OpenItem(UInt32, Guid, IntPtr, IVsWindowFrame)

Opens an item in the project.

RemoveItem(UInt32, UInt32, Int32)

Removes an item from the project.

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

Reopens an item in the project.

Applies to