StreamRenderingAttribute Class

Definition

An attribute to indicate whether to stream the rendering of a component and its descendants.

This attribute only takes effect within renderers that support streaming rendering (for example, server-side HTML rendering from a Razor Component endpoint). In other hosting models it has no effect.

If a component type does not declare this attribute, then instances of that component type will share the same streaming rendering mode as their parent component.

C#
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public class StreamRenderingAttribute : Attribute
Inheritance
StreamRenderingAttribute
Attributes

Constructors

Properties

Enabled

Gets a flag indicating whether this component and its descendants should stream their rendering.

Applies to

Product Versions
ASP.NET Core 8.0, 9.0