ITextDocument::Reload Method ()
Visual Studio 2015
Reloads the contents of FilePath into a TextBuffer.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Return Value
Type: Microsoft.VisualStudio.Text::ReloadResultA ReloadResult that indicates whether the reload took place and whether the encoding was sufficient.
| Exception | Condition |
|---|---|
| InvalidOperationException | This object is in the middle of raising events. |
| UnauthorizedAccessException | An access error occurred during file load. |
| IOException | An I/O error occurred during file load. |
| ObjectDisposedException | This object has been disposed. |
If the load fails, the contents of the ITextBuffer remains unchanged.
Show: