Share via


EditResponse Constructor

Definition

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.

message
String

Any cumulative error message, null, or Empty if none.

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.

Applies to