Intersoft ClientUI Documentation
RequiresRole Property
See Also  Example Send Feedback
Intersoft.Client.UI.Navigation Namespace > UXPage Class : RequiresRole Property






Gets or sets the roles required by the User to display the page.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Authentication")>
Public Property RequiresRole As String
Visual Basic (Usage)Copy Code
Dim instance As UXPage
Dim value As String
 
instance.RequiresRole = value
 
value = instance.RequiresRole
C# 
[CategoryAttribute("Authentication")]
public string RequiresRole {get; set;}
Delphi 
public read-write property RequiresRole: String; 
JScript 
CategoryAttribute("Authentication")
public function get,set RequiresRole : String
Managed Extensions for C++ 
[CategoryAttribute("Authentication")]
public: __property string* get_RequiresRole();
public: __property void set_RequiresRole( 
   string* value
);
C++/CLI 
[CategoryAttribute("Authentication")]
public:
property String^ RequiresRole {
   String^ get();
   void set (    String^ value);
}

Example

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

</Intersoft:UXPage>

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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.