Share via


WebRenderTreeBuilderExtensions.AddEventPreventDefaultAttribute Method

Definition

Appends a frame representing an instruction to prevent the default action for a specified event.

public:
[System::Runtime::CompilerServices::Extension]
 static void AddEventPreventDefaultAttribute(Microsoft::AspNetCore::Components::Rendering::RenderTreeBuilder ^ builder, int sequence, System::String ^ eventName, bool value);
public static void AddEventPreventDefaultAttribute (this Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder, int sequence, string eventName, bool value);
static member AddEventPreventDefaultAttribute : Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder * int * string * bool -> unit
<Extension()>
Public Sub AddEventPreventDefaultAttribute (builder As RenderTreeBuilder, sequence As Integer, eventName As String, value As Boolean)

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

eventName
String

The name of the event to be affected.

value
Boolean

True if the default action is to be prevented, otherwise false.

Applies to