Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AuthorizeView.Roles Property

Definition

Namespace:
Microsoft.AspNetCore.Components.Authorization
Assembly:
Microsoft.AspNetCore.Components.Authorization.dll
Package:
Microsoft.AspNetCore.Components.Authorization v10.0.0
Package:
Microsoft.AspNetCore.Components.Authorization v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Components.Authorization v3.0.3
Package:
Microsoft.AspNetCore.Components.Authorization v3.1.18
Package:
Microsoft.AspNetCore.Components.Authorization v5.0.9
Package:
Microsoft.AspNetCore.Components.Authorization v6.0.6
Package:
Microsoft.AspNetCore.Components.Authorization v7.0.5
Package:
Microsoft.AspNetCore.Components.Authorization v8.0.19
Package:
Microsoft.AspNetCore.Components.Authorization v9.0.8
Source:
AuthorizeView.cs
Source:
AuthorizeView.cs
Source:
AuthorizeView.cs
Source:
AuthorizeView.cs
Source:
AuthorizeView.cs
Source:
AuthorizeView.cs
Source:
AuthorizeView.cs
Source:
AuthorizeView.cs
Source:
AuthorizeView.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

A comma delimited list of roles that are allowed to display the content.

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

Property Value

Attributes

Applies to


Feedback

Was this page helpful?