Поделиться через


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)

Syntax

'Декларация
Sub Save
void Save()
void Save()
abstract Save : unit -> unit 
function Save()

Exceptions

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.

Remarks

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

.NET Framework Security

See Also

Reference

ITextDocument Interface

Microsoft.VisualStudio.Text Namespace