ITextDocument.Reload Method (EditOptions)

Reloads the contents of FilePath into TextBuffer, using the given EditOptions.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

ReloadResult Reload(
	EditOptions options
)

Parameters

options
Type: Microsoft.VisualStudio.Text.EditOptions

The options to use for the text buffer edit.

ExceptionCondition
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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft