ITextDocument.Rename Method
Rename the document to the given new file path.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaración
Sub Rename ( _
newFilePath As String _
)
void Rename(
string newFilePath
)
void Rename(
String^ newFilePath
)
abstract Rename :
newFilePath:string -> unit
function Rename(
newFilePath : String
)
Parameters
- newFilePath
Type: System.String
The new file path for this document.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | This object is in the middle of raising events. |
ObjectDisposedException | This object has been disposed. |
.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.