EditResponse Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the EditResponse class.
public EditResponse (bool succeeded, string? message, System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot,Microsoft.VisualStudio.Extensibility.Editor.TextDocumentSnapshotEditResponse>? documentEditResults, System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot,Microsoft.VisualStudio.Extensibility.Editor.TextViewEditResponse>? textViewEditResults);
new Microsoft.VisualStudio.Extensibility.Editor.EditResponse : bool * string * System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot, Microsoft.VisualStudio.Extensibility.Editor.TextDocumentSnapshotEditResponse> * System.Collections.Generic.IReadOnlyDictionary<Microsoft.VisualStudio.Extensibility.Editor.ITextViewSnapshot, Microsoft.VisualStudio.Extensibility.Editor.TextViewEditResponse> -> Microsoft.VisualStudio.Extensibility.Editor.EditResponse
Public Sub New (succeeded As Boolean, message As String, documentEditResults As IReadOnlyDictionary(Of ITextDocumentSnapshot, TextDocumentSnapshotEditResponse), textViewEditResults As IReadOnlyDictionary(Of ITextViewSnapshot, TextViewEditResponse))
Parameters
- succeeded
- Boolean
true
if the cumulative operation completed successfully.
- documentEditResults
- IReadOnlyDictionary<ITextDocumentSnapshot,TextDocumentSnapshotEditResponse>
Result of document edit operations.
- textViewEditResults
- IReadOnlyDictionary<ITextViewSnapshot,TextViewEditResponse>
Per-document operation results including per document errors and updated ITextDocumentSnapshot versions.