Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / HttpModuleCollection.cs / 1305376 / HttpModuleCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Collection of IHttpModules * * Copyright (c) 2000 Microsoft Corporation */ namespace System.Web { using System.Runtime.InteropServices; using System.Collections; using System.Collections.Specialized; using System.Web; using System.Web.Util; using System.Security.Permissions; ////// public sealed class HttpModuleCollection : NameObjectCollectionBase { // cached All[] arrays private IHttpModule[] _all; private String[] _allKeys; internal HttpModuleCollection() : base(Misc.CaseInsensitiveInvariantKeyComparer) { } ///A collection of IHttpModules ////// public void CopyTo(Array dest, int index) { if (_all == null) { int n = Count; _all = new IHttpModule[n]; for (int i = 0; i < n; i++) _all[i] = Get(i); } if (_all != null) { _all.CopyTo(dest, index); } } internal void AddModule(String name, IHttpModule m) { _all = null; _allKeys = null; BaseAdd(name, m); } // // Access by name // ///[To be supplied.] ////// public IHttpModule Get(String name) { return(IHttpModule)BaseGet(name); } ///[To be supplied.] ////// public IHttpModule this[String name] { get { return Get(name);} } // // Indexed access // ///[To be supplied.] ////// public IHttpModule Get(int index) { return(IHttpModule)BaseGet(index); } ///[To be supplied.] ////// public String GetKey(int index) { return BaseGetKey(index); } ///[To be supplied.] ////// public IHttpModule this[int index] { get { return Get(index);} } // // Access to keys and values as arrays // ///[To be supplied.] ////// public String[] AllKeys { get { if (_allKeys == null) _allKeys = BaseGetAllKeys(); return _allKeys; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CachedBitmap.cs
- BufferBuilder.cs
- DynamicMetaObjectBinder.cs
- CannotUnloadAppDomainException.cs
- FunctionNode.cs
- EventlogProvider.cs
- Decorator.cs
- ClientSession.cs
- CounterSampleCalculator.cs
- TextDecorations.cs
- TimeZoneInfo.cs
- HtmlControl.cs
- CookieParameter.cs
- Wildcard.cs
- StrongTypingException.cs
- CookielessHelper.cs
- BorderSidesEditor.cs
- DatagridviewDisplayedBandsData.cs
- HostVisual.cs
- MarkupExtensionSerializer.cs
- DecoderFallback.cs
- CodeBinaryOperatorExpression.cs
- SqlFacetAttribute.cs
- SimpleType.cs
- DataControlLinkButton.cs
- RbTree.cs
- ConfigXmlCDataSection.cs
- Transform3DCollection.cs
- TextStore.cs
- PenThreadWorker.cs
- WorkflowApplicationCompletedException.cs
- ProjectionPruner.cs
- XmlTextReader.cs
- xsdvalidator.cs
- SchemaManager.cs
- CssStyleCollection.cs
- BamlVersionHeader.cs
- PixelFormat.cs
- ListViewPagedDataSource.cs
- FactoryGenerator.cs
- StringSorter.cs
- NonParentingControl.cs
- SqlWriter.cs
- ObsoleteAttribute.cs
- IdentityManager.cs
- PolicyManager.cs
- IPGlobalProperties.cs
- ObjectListSelectEventArgs.cs
- SignatureToken.cs
- PresentationSource.cs
- Property.cs
- ApplicationManager.cs
- CachedPathData.cs
- DbInsertCommandTree.cs
- UnsafeNativeMethodsTablet.cs
- ReadOnlyDataSource.cs
- Crypto.cs
- ProxyWebPartConnectionCollection.cs
- ImageListImage.cs
- XmlAttribute.cs
- PolyBezierSegmentFigureLogic.cs
- XmlSchemaSimpleContentRestriction.cs
- FileDetails.cs
- TriggerBase.cs
- ExtenderProvidedPropertyAttribute.cs
- HttpRequest.cs
- WebServiceClientProxyGenerator.cs
- Stylesheet.cs
- ContainerParaClient.cs
- WCFModelStrings.Designer.cs
- ScopedKnownTypes.cs
- ToolStripControlHost.cs
- ContentType.cs
- CroppedBitmap.cs
- SqlBinder.cs
- RoleService.cs
- Convert.cs
- ParameterToken.cs
- LogPolicy.cs
- InstalledFontCollection.cs
- ObjectAnimationUsingKeyFrames.cs
- SchemaComplexType.cs
- WindowsGraphicsCacheManager.cs
- UnsafeNativeMethods.cs
- WebPart.cs
- ApplicationSecurityManager.cs
- SpecularMaterial.cs
- HttpProcessUtility.cs
- OdbcReferenceCollection.cs
- ToolStripComboBox.cs
- StringFormat.cs
- DoubleCollectionConverter.cs
- AQNBuilder.cs
- PageRequestManager.cs
- NonParentingControl.cs
- UnmanagedMemoryStream.cs
- ErrorEventArgs.cs
- StandardBindingImporter.cs
- CapabilitiesState.cs
- QilStrConcat.cs