ITextDocument.SaveAs Method (String, Boolean)
Saves the contents of the TextBuffer to the specified file path.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
This object is in the middle of raising events.
filePath is null.
An access error occurred during file save.
An I/O error occurred (including an error caused by attempting to overwrite an existing file when overwrite is false).
This object has been disposed.
- 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.