Share via


StreamRenderingAttribute 类

定义

一个属性,指示是否流式传输组件及其后代的呈现。

此属性仅在支持流式呈现的呈现器中生效, (例如,从 Razor 组件终结点) 服务器端 HTML 呈现。 在其他托管模型中,它不起作用。

如果组件类型未声明此属性,则该组件类型的实例将与其父组件共享相同的流式处理呈现模式。

[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
继承
StreamRenderingAttribute
属性

构造函数

StreamRenderingAttribute(Boolean)

构造 的实例 StreamRenderingAttribute

属性

Enabled

获取一个标志,该标志指示此组件及其后代是否应流式传输其呈现。

适用于