Share via


CascadingValue<TValue>.Name 屬性

定義

選擇性地為提供的值指定名稱。 子代元件可以藉由指定此名稱來接收值。

如果未指定任何名稱,則子系元件會根據所要求的數值型別接收值。

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[Microsoft.AspNetCore.Components.Parameter]
public string Name { get; set; }
[Microsoft.AspNetCore.Components.Parameter]
public string? Name { get; set; }
[<Microsoft.AspNetCore.Components.Parameter>]
member this.Name : string with get, set
Public Property Name As String

屬性值

屬性

適用於