IVsIntellisenseProject.RenameFile – metoda (String, String, UInt32)
Přejmenuje soubor v 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 RenameFile(
string bstrAbsPath,
string bstrNewAbsPath,
uint itemid
)
int RenameFile(
String^ bstrAbsPath,
String^ bstrNewAbsPath,
unsigned int itemid
)
abstract RenameFile :
bstrAbsPath:string *
bstrNewAbsPath:string *
itemid:uint32 -> int
Function RenameFile (
bstrAbsPath As String,
bstrNewAbsPath As String,
itemid As UInteger
) As Integer
Parametry
- bstrAbsPath
[v] Řetězec obsahující úplnou cestu a název souboru.
- bstrNewAbsPath
[v] Řetězec obsahující úplnou cestu a název souboru.
- itemid
[v] Identifikátor položky v souboru (VSITEMID).
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