Freigeben über


RazorConfigurationNameAttribute Klasse

Definition

Gibt den Namen einer Razor-Konfiguration an, wie vom Razor SDK definiert.

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
Vererbung
RazorConfigurationNameAttribute
Attribute

Hinweise

Dieses Attribut wird während des Builds vom Razor SDK auf die Einstiegspunktassembly einer Anwendung angewendet, sodass die Razor-Konfiguration zur Laufzeit basierend auf den einstellungen geladen werden kann, die von der Projektdatei bereitgestellt werden.

Konstruktoren

RazorConfigurationNameAttribute(String)

Erstellt eine neue Instanz von RazorConfigurationNameAttribute.

Eigenschaften

ConfigurationName

Ruft den Namen der Razor-Konfiguration ab.

Gilt für: