ITextDocument.SaveCopy Method (String, Boolean)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Saves the contents of the TextBuffer to the given filePath.
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.