Compartir a través de


ITextDocument.Reload Method

Definition

Overloads

Reload(EditOptions)

Reloads the contents of FilePath into TextBuffer, using the given EditOptions.
If the load fails, the contents of the ITextBuffer remains unchanged.

Reload()

Reloads the contents of FilePath into TextBuffer.
If the load fails, the contents of the ITextBuffer remains unchanged.

Reload(EditOptions)

Reloads the contents of FilePath into TextBuffer, using the given EditOptions.
If the load fails, the contents of the ITextBuffer remains unchanged.

public:
 Microsoft::VisualStudio::Text::ReloadResult Reload(Microsoft::VisualStudio::Text::EditOptions options);
Microsoft::VisualStudio::Text::ReloadResult Reload(Microsoft::VisualStudio::Text::EditOptions options);
public Microsoft.VisualStudio.Text.ReloadResult Reload (Microsoft.VisualStudio.Text.EditOptions options);
abstract member Reload : Microsoft.VisualStudio.Text.EditOptions -> Microsoft.VisualStudio.Text.ReloadResult
Public Function Reload (options As EditOptions) As ReloadResult

Parameters

options
EditOptions

The options to use for the text buffer edit.

Returns

Indicates whether the reload took place and whether the encoding was sufficient.

Exceptions

An I/O error occurred during file load.

An access error occurred during file load.

This object has been disposed.

This object is in the middle of raising events.

Remarks

If the load fails, the contents of the ITextBuffer remains unchanged.

Applies to

Reload()

Reloads the contents of FilePath into TextBuffer.
If the load fails, the contents of the ITextBuffer remains unchanged.

public:
 Microsoft::VisualStudio::Text::ReloadResult Reload();
public:
 Microsoft::VisualStudio::Text::ReloadResult Reload();
Microsoft::VisualStudio::Text::ReloadResult Reload();
public Microsoft.VisualStudio.Text.ReloadResult Reload ();
abstract member Reload : unit -> Microsoft.VisualStudio.Text.ReloadResult
Public Function Reload () As ReloadResult

Returns

Indicates whether the reload took place and whether the encoding was sufficient.

Exceptions

An I/O error occurred during file load.

An access error occurred during file load.

This object has been disposed.

This object is in the middle of raising events.

Remarks

If the load fails, the contents of the ITextBuffer remains unchanged.

Applies to