CascadingParameterAttribute 類別

定義

將目標成員表示為級聯元件參數。 其值將由最接近的上階 CascadingValue<TValue> 元件提供,以提供具有相容類型和名稱的值。

public ref class CascadingParameterAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class CascadingParameterAttribute : Attribute
[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
繼承
CascadingParameterAttribute
屬性

建構函式

CascadingParameterAttribute()

將目標成員表示為級聯元件參數。 其值將由最接近的上階 CascadingValue<TValue> 元件提供,以提供具有相容類型和名稱的值。

屬性

Name

如果指定,參數值將會由提供具有此名稱之值的最接近上階 CascadingValue<TValue> 提供。

如果為 null,參數值將會由最接近的上階 CascadingValue<TValue> 提供,以提供具有相容類型的值。

適用於