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)
Syntax
'Déclaration
Function Reload ( _
options As EditOptions _
) As ReloadResult
ReloadResult Reload(
EditOptions options
)
ReloadResult Reload(
EditOptions options
)
abstract Reload :
options:EditOptions -> ReloadResult
function Reload(
options : EditOptions
) : ReloadResult
Parameters
- options
Type: Microsoft.VisualStudio.Text.EditOptions
The options to use for the text buffer edit.
Return Value
Type: Microsoft.VisualStudio.Text.ReloadResult
The ReloadResult.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.