blob: 92e1791303b4c6896f6405b5276d0a8101723c70 (
plain)
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
|
//
// System.Web.Security.RoleProviderCollection
//
// Authors:
// Ben Maurer (bmaurer@users.sourceforge.net)
//
// (C) 2003 Ben Maurer
//
#if NET_2_0
using System.Configuration.Provider;
namespace System.Web.Security {
public class RoleProviderCollection : ProviderCollection {
public override void Add (IProvider provider)
{
if (provider is IRoleProvider)
base.Add (provider);
else
throw new HttpException ();
}
public IRoleProvider this [string name] {
get { return (IRoleProvider) base [name]; }
}
}
}
#endif
|