Share via


AuthorizeView.Roles 屬性

定義

允許顯示內容的逗號分隔角色清單。

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

屬性值

屬性

適用於