title: How do I get page attributes and its values in code in Blazor Server side
body: <p>Blazor 6</p>
  <p>I have two types of authorization attributes on page
  @attribute [Authorize(Policy = &quot;IsAdmin&quot;)]
  @attribute [Authorize(Roles = &quot;AdminRole,UserRole&quot;)]</p>
  <p>How can check in code is Authorize attributed is placed on page and get its type (Policy or Roles) and get its value (&quot;IsAdmin&quot; or &quot;AdminRole,UserRole&quot;)</p>