Dela via


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.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public class StreamRenderingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
type StreamRenderingAttribute = class
    inherit Attribute
Public Class StreamRenderingAttribute
Inherits Attribute
Inheritance
StreamRenderingAttribute
Attributes

Constructors

StreamRenderingAttribute(Boolean)

Constructs an instance of StreamRenderingAttribute

Properties

Enabled

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

Applies to