Aracılığıyla paylaş


IVsProject2 Arabirim

 

Yayýmlanma: Ağustos 2016

Kaldırın ve yöntemlere ek olarak, proje içindeki öğelerin yeniden yeteneği sağlar IVsProject arabirimi.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

[InterfaceTypeAttribute(1)]
[GuidAttribute("4AF886C3-7796-4C81-A174-4A87080DEE58")]
public interface IVsProject2 : IVsProject
[InterfaceTypeAttribute(1)]
[GuidAttribute("4AF886C3-7796-4C81-A174-4A87080DEE58")]
public interface class IVsProject2 : IVsProject
[<InterfaceTypeAttribute(1)>]
[<GuidAttribute("4AF886C3-7796-4C81-A174-4A87080DEE58")>]
type IVsProject2 = 
    interface
        interface IVsProject
    end
<InterfaceTypeAttribute(1)>
<GuidAttribute("4AF886C3-7796-4C81-A174-4A87080DEE58")>
Public Interface IVsProject2
    Inherits IVsProject

Yöntemler

Ad Açıklama
System_CAPS_pubmethod AddItem(UInt32, VSADDITEMOPERATION, String, UInt32, String[], IntPtr, VSADDRESULT[])

Projede yeni öğeleri oluşturur, varolan dosyaları projeye ekler veya neden Öğe Ekle sihirbazları çalıştırılacak.

System_CAPS_pubmethod GenerateUniqueItemName(UInt32, String, String, String)

Belirli bir öğe için bir benzersiz belge adı oluşturur.

System_CAPS_pubmethod GetItemContext(UInt32, IServiceProvider)

Bir öğenin bağlamını döndürür.

System_CAPS_pubmethod GetMkDocument(UInt32, String)

Belge bilinen adını döndürür.

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

Bir belge projede olup olmadığını belirler.

System_CAPS_pubmethod OpenItem(UInt32, Guid, IntPtr, IVsWindowFrame)

Bir öğeyi açar.

System_CAPS_pubmethod RemoveItem(UInt32, UInt32, Int32)

Bir öğe projeden kaldırır.

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

Projedeki bir öğeyi yeniden açar.

Gerçekleştirenlere Notlar:

Uygulama IVsProject2 kaldırın veya yeniden öğeleri ya da belirli bir düzenleyici kullanarak bir proje belgeler veya projeler arasında bir öğe aktarmak için gereken zaman.

Ayrıca bkz.

Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön