Język

AssetPathAttribute Klasa

Definicja

Wskazuje, że parametr składnika akceptuje statyczną ścieżkę zasobu, którą może rozwinąć kompilator Razor.

[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
Dziedziczenie
AssetPathAttribute
Atrybuty

Przykłady

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

Uwagi

Ten atrybut jest prawidłowy tylko we właściwościach oznaczonych również jako ParameterAttribute.

Konstruktory

Nazwisko Opis
AssetPathAttribute()

Wskazuje, że parametr składnika akceptuje statyczną ścieżkę zasobu, którą może rozwinąć kompilator Razor.

Dotyczy