RenderModeAttribute Class

Definition

Specifies a fixed rendering mode for a component type.

Where possible, components should not specify any render mode this way, and should be implemented to work across all render modes. Component authors should only specify a fixed rendering mode when the component is incapable of running in other modes.

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

Constructors

Properties

Mode

Gets the fixed rendering mode for a component type.

Applies to

Product Versions
ASP.NET Core 8.0, 9.0