diff --git a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs index 7bdacfbc4b0d..1ae45da85183 100644 --- a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs +++ b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs @@ -786,6 +786,7 @@ public void OpenComponent(int sequence, System.Type componentType) { } public void OpenComponent(int sequence) where TComponent : Microsoft.AspNetCore.Components.IComponent { } public void OpenElement(int sequence, string elementName) { } public void SetKey(object value) { } + public void SetUpdatesAttributeName(string updatesAttributeName) { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RenderTreeDiff diff --git a/src/Components/Components/src/RenderTree/RenderTreeBuilder.cs b/src/Components/Components/src/RenderTree/RenderTreeBuilder.cs index 79290f8e072e..c6ae2998f256 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeBuilder.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeBuilder.cs @@ -516,6 +516,24 @@ public void AddMultipleAttributes(int sequence, IEnumerable + /// + /// Indicates that the preceding attribute represents an event handler + /// whose execution updates the attribute with name . + /// + /// + /// This information is used by the rendering system to determine whether + /// to accept a value update for the other attribute when receiving a + /// call to the event handler. + /// + /// + /// The name of another attribute whose value can be updated when the event handler is executed. + public void SetUpdatesAttributeName(string updatesAttributeName) + { + // TODO: This will be implemented in a later PR, once aspnetcore-tooling + // is updated to call this method. + } + /// /// Appends a frame representing a child component. ///