AcceptsAssetPathAttribute Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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. |