RazorConfigurationNameAttribute 类

定义

指定 Razor SDK 定义的 Razor 配置的名称。

public ref class RazorConfigurationNameAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)]
public sealed class RazorConfigurationNameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)>]
type RazorConfigurationNameAttribute = class
    inherit Attribute
Public NotInheritable Class RazorConfigurationNameAttribute
Inherits Attribute
继承
RazorConfigurationNameAttribute
属性

注解

在生成期间,Razor SDK 会将此属性应用于应用程序的入口点程序集,以便可以根据项目文件提供的设置在运行时加载 Razor 配置。

构造函数

RazorConfigurationNameAttribute(String)

创建 RazorConfigurationNameAttribute 的新实例。

属性

ConfigurationName

获取 Razor 配置的名称。

适用于