SupplyParameterFromFormAttribute 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示應該從具有指定名稱之表單的表單資料中提供相關聯屬性的值。
C#
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class SupplyParameterFromFormAttribute : Microsoft.AspNetCore.Components.CascadingParameterAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type SupplyParameterFromFormAttribute = class
inherit CascadingParameterAttributeBase
Public NotInheritable Class SupplyParameterFromFormAttribute
Inherits CascadingParameterAttributeBase
- 繼承
- 屬性
Supply |
表示應該從具有指定名稱之表單的表單資料中提供相關聯屬性的值。 |
Form |
取得或設定提供此值之表單的名稱。 如果未指定,值將會從目前表單對應範圍內的任何內送表單貼文對應。 如果指定,則值只會從目前對應範圍中具有指定名稱的表單對應。 |
Name |
取得或設定表單值的名稱。 如果未指定,則會使用屬性名稱。 |
產品 | 版本 |
---|---|
ASP.NET Core | 8.0, 9.0 |