Lingua

AssetPathAttribute Classe

Definizione

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.

Si applica a