File: RoleProvider.cs

package info (click to toggle)
mono 6.14.1%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,282,732 kB
  • sloc: cs: 11,182,461; xml: 2,850,281; ansic: 699,123; cpp: 122,919; perl: 58,604; javascript: 30,841; asm: 21,845; makefile: 19,602; sh: 10,973; python: 4,772; pascal: 925; sql: 859; sed: 16; php: 1
file content (54 lines) | stat: -rw-r--r-- 2,736 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//------------------------------------------------------------------------------
// <copyright file="RoleProvider.cs" company="Microsoft">
//    Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------

namespace System.Web.Security {
   using  System.Web;
   using  System.Security.Principal;
   using  System.Security.Permissions;
   using  System.Globalization;
   using  System.Runtime.CompilerServices;
   using  System.Runtime.Serialization;
   using  System.Collections;
   using  System.Collections.Specialized;
   using  System.Configuration.Provider;
   using System.Diagnostics.CodeAnalysis;

   /// <devdoc>
   ///   <para>[To be supplied.]</para>
   /// </devdoc>
   [TypeForwardedFrom("System.Web, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a")]
   public abstract class RoleProvider : ProviderBase
   {

       public abstract string ApplicationName { get; set; }


       [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "username", Justification="This version is required to maintain backwards binary compatibility")]
       public abstract bool IsUserInRole(string username, string roleName);

       [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "username", Justification="This version is required to maintain backwards binary compatibility")]
       public abstract string[] GetRolesForUser(string username);

       public abstract void CreateRole(string roleName);

       public abstract bool DeleteRole(string roleName, bool throwOnPopulatedRole);

       public abstract bool RoleExists(string roleName);

       [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "usernames", Justification="This version is required to maintain backwards binary compatibility")]
       public abstract void AddUsersToRoles(string[] usernames, string[] roleNames);

       [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "usernames", Justification="This version is required to maintain backwards binary compatibility")]
       public abstract void RemoveUsersFromRoles(string[] usernames, string[] roleNames);

       public abstract string[] GetUsersInRole(string roleName);

       public abstract string[] GetAllRoles();

       [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "username", Justification="This version is required to maintain backwards binary compatibility")]
       public abstract string[] FindUsersInRole(string roleName, string usernameToMatch);
   }
}