RoleProviderCollection.cs 548 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // System.Web.Security.RoleProviderCollection
  3. //
  4. // Authors:
  5. // Ben Maurer ([email protected])
  6. //
  7. // (C) 2003 Ben Maurer
  8. //
  9. #if NET_1_2
  10. using System.Configuration.Provider;
  11. namespace System.Web.Security {
  12. public class RoleProviderCollection : ProviderCollection {
  13. public override void Add (IProvider provider)
  14. {
  15. if (provider is IRoleProvider)
  16. base.Add (provider);
  17. else
  18. throw new HttpException ();
  19. }
  20. public IRoleProvider this [string name] {
  21. get { return (IRoleProvider) base [name]; }
  22. }
  23. }
  24. }
  25. #endif