CascadingParameterAttribute 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將目標成員表示為級聯元件參數。 其值將由最接近的上階 CascadingValue<TValue> 元件提供,以提供具有相容類型和名稱的值。
public ref class CascadingParameterAttribute sealed : Attribute
C#
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class CascadingParameterAttribute : Attribute
C#
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class CascadingParameterAttribute : Microsoft.AspNetCore.Components.CascadingParameterAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type CascadingParameterAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type CascadingParameterAttribute = class
inherit CascadingParameterAttributeBase
Public NotInheritable Class CascadingParameterAttribute
Inherits Attribute
Public NotInheritable Class CascadingParameterAttribute
Inherits CascadingParameterAttributeBase
- 繼承
-
CascadingParameterAttribute
- 繼承
- 屬性
Cascading |
將目標成員表示為級聯元件參數。 其值將由最接近的上階 CascadingValue<TValue> 元件提供,以提供具有相容類型和名稱的值。 |
Name |
如果指定,參數值將會由提供具有此名稱之值的最接近上階 CascadingValue<TValue> 提供。 如果為 null,參數值將會由最接近的上階 CascadingValue<TValue> 提供,以提供具有相容類型的值。 |
產品 | 版本 |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |