Lenguaje

AssetPathAttribute Clase

Definición

Indica que un parámetro de componente acepta una ruta de acceso de recurso estático que el compilador de Razor puede expandir.

[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
Herencia
AssetPathAttribute
Atributos

Ejemplos

[Parameter]
[AssetPath]
public string? Source { get; set; }

Comentarios

Este atributo solo es válido en las propiedades que también están marcadas con ParameterAttribute.

Constructores

Nombre Description
AssetPathAttribute()

Indica que un parámetro de componente acepta una ruta de acceso de recurso estático que el compilador de Razor puede expandir.

Se aplica a