Language

AssetPathAttribute クラス

定義

コンポーネント パラメーターが、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
継承
AssetPathAttribute
属性

例

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

注釈

この属性は、 ParameterAttributeでマークされているプロパティでのみ有効です。

コンストラクター

Name 説明
AssetPathAttribute()

コンポーネント パラメーターが、Razor コンパイラが展開できる静的資産パスを受け入れることを示します。

適用対象