Role-Based Security

The following code extracts from the database the list of application-defined roles associated with the logged-on user strUserName. The list is stored in the string array strRoles:

strRoles = RoleBasedSecurity.LoadRoles(strUserName)

The next line of code shown assigns the Principal for strUserName—containing the user name and associated roles—to the current thread:

RoleBasedSecurity.SetPrincipalPolicy strUserName
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.75.93