Lingua

AcceptsAssetPathAttribute Classe

Definizione

Dichiara una combinazione di elementi e attributi HTML che accetta l'espansione statica di asset-path.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class AcceptsAssetPathAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type AcceptsAssetPathAttribute = class
    inherit Attribute
Public NotInheritable Class AcceptsAssetPathAttribute
Inherits Attribute
Ereditarietà
AcceptsAssetPathAttribute
Attributi

Esempio

[AcceptsAssetPath("img", "src")]
public static class AssetPathAttributes
{
}

Commenti

Il compilatore Razor individua questi metadati nelle classi pubbliche denominate AssetPathAttributes.

Costruttori

Nome Descrizione
AcceptsAssetPathAttribute(String, String)

Inizializza una nuova istanza di AcceptsAssetPathAttribute.

Proprietà

Nome Descrizione
AttributeName

Ottiene il nome dell'attributo HTML.

ElementName

Ottiene il nome dell'elemento HTML.

Si applica a