ITextDocument.SaveAs Method (String, Boolean, IContentType)
[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 specified file path.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
This object is in the middle of raising events.
filePath or newContentType 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.