AssetPathAttribute 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.
Indica che un parametro del componente accetta un percorso di asset statico che il compilatore Razor può espandere.
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class AssetPathAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type AssetPathAttribute = class
inherit Attribute
Public NotInheritable Class AssetPathAttribute
Inherits Attribute
- Ereditarietà
-
AssetPathAttribute
- Attributi
Esempio
[Parameter]
[AssetPath]
public string? Source { get; set; }
Commenti
Questo attributo è valido solo per le proprietà contrassegnate anche con ParameterAttribute.
Costruttori
| Nome | Descrizione |
|---|---|
| AssetPathAttribute() |
Indica che un parametro del componente accetta un percorso di asset statico che il compilatore Razor può espandere. |