mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
Renamed the `NET_1_2' conditional to `NET_2_0' in all files. svn path=/trunk/mcs/; revision=25877
30 lines
548 B
C#
30 lines
548 B
C#
//
|
|
// System.Web.Security.RoleProviderCollection
|
|
//
|
|
// Authors:
|
|
// Ben Maurer ([email protected])
|
|
//
|
|
// (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
|
|
|