OutputCacheProviderCollection.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Cache / OutputCacheProviderCollection.cs / 1305376 / OutputCacheProviderCollection.cs

                            using System; 
using System.Configuration.Provider;
using System.Security.Permissions;
using System.Web;
 
namespace System.Web.Caching {
    public sealed class OutputCacheProviderCollection : ProviderCollection { 
 
        new public OutputCacheProvider this[string name] {
            get { 
                return (OutputCacheProvider) base[name];
            }
        }
 
        public override void Add(ProviderBase provider) {
            if (provider == null) { 
                throw new ArgumentNullException( "provider" ); 
            }
 
            if (!(provider is OutputCacheProvider)) {
                throw new ArgumentException(SR.GetString(SR.Provider_must_implement_type, typeof(OutputCacheProvider).Name),
                                            "provider");
            } 

            base.Add(provider); 
        } 

        public void CopyTo(OutputCacheProvider[] array, int index) { 
            base.CopyTo(array, index);
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK