CascadingParameterAttribute.Name 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果指定,參數值將會由提供具有此名稱之值的最接近上階 CascadingValue<TValue> 提供。
如果為 null,參數值將會由最接近的上階 CascadingValue<TValue> 提供,以提供具有相容類型的值。
public:
property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
C#
public string Name { get; set; }
C#
public string? Name { get; set; }
member this.Name : string with get, set
Public Property Name As String
產品 | 版本 |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |