WebRenderTreeBuilderExtensions.AddEventPreventDefaultAttribute Method
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.
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
- builder
- RenderTreeBuilder
The RenderTreeBuilder.
- 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.