ITextDocument.SaveCopy Method (String, Boolean, Boolean)
Saves the contents of the TextBuffer to the specified file path.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
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.