RenderModeAttribute 类

定义

指定组件类型的固定呈现模式。

如果可能,组件不应以这种方式指定任何呈现模式,并且应实现以跨所有呈现模式工作。 仅当组件无法在其他模式下运行时,组件作者才应指定固定呈现模式。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public abstract class RenderModeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type RenderModeAttribute = class
    inherit Attribute
Public MustInherit Class RenderModeAttribute
Inherits Attribute
继承
RenderModeAttribute
属性

构造函数

RenderModeAttribute()

指定组件类型的固定呈现模式。

如果可能,组件不应以这种方式指定任何呈现模式,并且应实现以跨所有呈现模式工作。 仅当组件无法在其他模式下运行时,组件作者才应指定固定呈现模式。

属性

Mode

获取组件类型的固定呈现模式。

适用于