Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Renames the specified document.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Shared Sub RenameDocument ( _
site As IServiceProvider, _
oldName As String, _
newName As String _
)
public static void RenameDocument(
IServiceProvider site,
string oldName,
string newName
)
public:
static void RenameDocument(
IServiceProvider^ site,
String^ oldName,
String^ newName
)
static member RenameDocument :
site:IServiceProvider *
oldName:string *
newName:string -> unit
public static function RenameDocument(
site : IServiceProvider,
oldName : String,
newName : String
)
Parameters
site
Type: System.IServiceProvider
oldName
Type: System.StringThe current absolute path of the document.
newName
Type: System.StringThe new absolute path of the document.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.