ITextDocument::Save Method ()

 

Saves the contents of the TextBuffer to the FilePath.

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

void Save()

Exception Condition
InvalidOperationException

This object is in the middle of raising events.

UnauthorizedAccessException

An access error occurred during file save.

IOException

An I/O error occurred during file save.

ObjectDisposedException

This object has been disposed.

If the save operation fails, the value of IsDirty remains unchanged.

Return to top
Show: