Sdílet prostřednictvím


IVsIntellisenseProject.AddFile – metoda (String, UInt32)

 

Přidá soubor do projektu.

Obor názvů:   Microsoft.VisualStudio.Shell.Interop
Sestavení:  Microsoft.VisualStudio.Shell.Interop.8.0 (v Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntaxe

int AddFile(
    string bstrAbsPath,
    uint itemid
)
int AddFile(
    String^ bstrAbsPath,
    unsigned int itemid
)
abstract AddFile : 
        bstrAbsPath:string *
        itemid:uint32 -> int
Function AddFile (
    bstrAbsPath As String,
    itemid As UInteger
) As Integer

Parametry

  • bstrAbsPath
    [v] Řetězec obsahující úplnou cestu k souboru.
  • itemid
    [v] Identifikátor položky (VSITEMID) souboru přidat.

Vrácená hodnota

Type: System.Int32

Pokud metoda uspěje, vrací S_OK.Pokud se nezdaří, vrátí kód chyby.

Viz také

IVsIntellisenseProject – rozhraní
Microsoft.VisualStudio.Shell.Interop – obor názvů

Zpátky na začátek