Freigeben über


IDkmScriptDocumentProvider.SetRaiseContentEvents Method

Definition

Enables or disables raising events when the content of the document is changed. By default, documents do not generate content events. So this method should be called by any component that wishes to receive content events. The script document manager maintains a count of the number of calls to enable content events, and will raise events whenever this count is greater than 0. Callers should take care to ensure that SetRaiseContentEvents(false) is called ONLY after a successful call to SetRaiseContentEvents(true). Content events are automatically disabled when the document is unloaded.

public:
 void SetRaiseContentEvents(Microsoft::VisualStudio::Debugger::Script::DkmScriptDocument ^ scriptDocument, bool enable);
public void SetRaiseContentEvents (Microsoft.VisualStudio.Debugger.Script.DkmScriptDocument scriptDocument, bool enable);
abstract member SetRaiseContentEvents : Microsoft.VisualStudio.Debugger.Script.DkmScriptDocument * bool -> unit
Public Sub SetRaiseContentEvents (scriptDocument As DkmScriptDocument, enable As Boolean)

Parameters

scriptDocument
DkmScriptDocument

[In] Represents a document which is executing in a script runtime environment. For example, the Microsoft JavaScript engine.

enable
Boolean

[In] If true, content events should be enabled for this document. If false, the count of content event listeners is decremented. When the count reaches zero, no further events will be sent.

Applies to