AssetPathAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コンポーネント パラメーターが、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 コンパイラが展開できる静的資産パスを受け入れることを示します。 |