ITextDocument::Rename Method (String^)

 

Rename the document to the given new file path.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

void Rename(
	String^ newFilePath
)

Parameters

newFilePath
Type: System::String^

The new file path for this document.

Exception Condition
InvalidOperationException

This object is in the middle of raising events.

ObjectDisposedException

This object has been disposed.

Return to top
Show: