Compartir a través de


ITextDocument.Reload Method

Reloads the contents of FilePath into a TextBuffer.

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

Syntax

'Declaración
Function Reload As ReloadResult
ReloadResult Reload()
ReloadResult Reload()
abstract Reload : unit -> ReloadResult 
function Reload() : ReloadResult

Return Value

Type: Microsoft.VisualStudio.Text.ReloadResult
A ReloadResult that indicates whether the reload took place and whether the encoding was sufficient.

Exceptions

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.

Remarks

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

.NET Framework Security

See Also

Reference

ITextDocument Interface

Reload Overload

Microsoft.VisualStudio.Text Namespace