Intersoft ClientUI Documentation
RequiresRole Property (UXPage)
Example 



Gets or sets the roles required by the User to display the page.
Syntax
<CategoryAttribute("Authentication")>
Public Property RequiresRole As String
Dim instance As UXPage
Dim value As String
 
instance.RequiresRole = value
 
value = instance.RequiresRole
[CategoryAttribute("Authentication")]
public string RequiresRole {get; set;}
[CategoryAttribute("Authentication")]
public:
property String^ RequiresRole {
   String^ get();
   void set (    String^ value);
}
Remarks

To enable authentication against users with particular roles, set the RequiresRole property of the UXPage to the desired role in string value. This feature works in conjunction with RequiresAuthentication property, which should be set to true as well.

For more information, see Advanced Features in ClientUI Navigation Framework.

Example
The following example shows how to setup a UXPage to require user authentication with particular roles.
<Intersoft:UXPage 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:Intersoft="http://intersoft.clientui.com/schemas"
        RequiresAuthentication="True"
        RequiresRole="Administrators"
    ...>

</Intersoft:UXPage>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXPage Class
UXPage Members
Navigation Overview

Send Feedback