Share via


DkmScriptRuntimeInstance.OnScriptCriticalError Method

Definition

Provides notification to the user that a critical error has happened in the target process. This method will complete once the critical error UI has been dismissed.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

Location constraint: API must be called from a Monitor component (component level < 100,000).

public:
 void OnScriptCriticalError(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, System::String ^ Source, int MessageId, System::String ^ Message, Microsoft::VisualStudio::Debugger::Script::DkmScriptInstructionAddress ^ InstructionAddress, Microsoft::VisualStudio::Debugger::Symbols::DkmSourcePosition ^ SourcePosition, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::Script::DkmOnScriptCriticalErrorAsyncResult> ^ CompletionRoutine);
public void OnScriptCriticalError (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, string Source, int MessageId, string Message, Microsoft.VisualStudio.Debugger.Script.DkmScriptInstructionAddress InstructionAddress, Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition SourcePosition, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Script.DkmOnScriptCriticalErrorAsyncResult> CompletionRoutine);
public void OnScriptCriticalError (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, string Source, int MessageId, string Message, Microsoft.VisualStudio.Debugger.Script.DkmScriptInstructionAddress? InstructionAddress, Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition? SourcePosition, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Script.DkmOnScriptCriticalErrorAsyncResult> CompletionRoutine);
member this.OnScriptCriticalError : Microsoft.VisualStudio.Debugger.DkmWorkList * string * int * string * Microsoft.VisualStudio.Debugger.Script.DkmScriptInstructionAddress * Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Script.DkmOnScriptCriticalErrorAsyncResult> -> unit
Public Sub OnScriptCriticalError (WorkList As DkmWorkList, Source As String, MessageId As Integer, Message As String, InstructionAddress As DkmScriptInstructionAddress, SourcePosition As DkmSourcePosition, CompletionRoutine As DkmCompletionRoutine(Of DkmOnScriptCriticalErrorAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

Source
String

[In] Specifies to the web developer what aspect of their page the issue pertains to. Ex: "HTML", "DOM", "SCRIPT", etc.

MessageId
Int32

[In] Indicates an error code. Source + MessageId should uniquely identify the message so that information about the error can be found in help.

Message
String

[In] Message to display to users.

InstructionAddress
DkmScriptInstructionAddress

[In,Optional] When known, the script instruction address where the error occurred.

SourcePosition
DkmSourcePosition

[In,Optional] When InstructionAddress is non-null, this contains the current source position of this instruction.

CompletionRoutine
DkmCompletionRoutine<DkmOnScriptCriticalErrorAsyncResult>

Routine to fire when the request is complete. If the request is successfully appended to the work list, this will always fire (including when the operation is canceled). This will never fire if appending the work item fails.

Applies to