Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / HttpModuleCollection.cs / 1 / 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; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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); } #if UNUSED internal void Reset() { _all = null; _allKeys = null; BaseClear(); } #endif // // 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. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationInfo.cs
- _ConnectOverlappedAsyncResult.cs
- TransportContext.cs
- ExpressionCopier.cs
- VirtualPath.cs
- ArrayTypeMismatchException.cs
- Point4DValueSerializer.cs
- EventTrigger.cs
- FileNotFoundException.cs
- SafeRightsManagementHandle.cs
- Utils.cs
- MultiSelectRootGridEntry.cs
- ExtentKey.cs
- ControlPaint.cs
- XmlSchemaImporter.cs
- UInt64Converter.cs
- DoubleAnimationBase.cs
- _Events.cs
- XmlSubtreeReader.cs
- SHA512Managed.cs
- SessionParameter.cs
- PathSegment.cs
- SecurityManager.cs
- SizeChangedInfo.cs
- SqlConnectionStringBuilder.cs
- CqlParserHelpers.cs
- TableCell.cs
- SimpleType.cs
- ClientSession.cs
- HtmlControlAdapter.cs
- QueryValue.cs
- XmlIlVisitor.cs
- FocusTracker.cs
- formatter.cs
- ScriptResourceHandler.cs
- DesignerWebPartChrome.cs
- StorageEndPropertyMapping.cs
- TextDecorations.cs
- PerfService.cs
- DateTimeOffsetAdapter.cs
- WebEvents.cs
- Exceptions.cs
- XmlSchemaParticle.cs
- AspProxy.cs
- PreviewPageInfo.cs
- UInt32Storage.cs
- ConsumerConnectionPointCollection.cs
- HttpListenerContext.cs
- XmlByteStreamReader.cs
- ZipIOExtraFieldPaddingElement.cs
- ExceptionTranslationTable.cs
- Expressions.cs
- ContextStack.cs
- EntityDataSourceEntitySetNameItem.cs
- EmptyStringExpandableObjectConverter.cs
- QueryStringParameter.cs
- PointLightBase.cs
- AutomationFocusChangedEventArgs.cs
- TextModifier.cs
- CompiledScopeCriteria.cs
- LambdaCompiler.Generated.cs
- DocumentPageViewAutomationPeer.cs
- AbsoluteQuery.cs
- KeyInstance.cs
- NavigatorOutput.cs
- SystemIPInterfaceStatistics.cs
- HostSecurityManager.cs
- COM2PictureConverter.cs
- DbConnectionPoolIdentity.cs
- Renderer.cs
- DLinqDataModelProvider.cs
- BaseTemplateParser.cs
- PerformanceCounter.cs
- IOException.cs
- TableLayoutPanelBehavior.cs
- ArrayHelper.cs
- ThreadNeutralSemaphore.cs
- BaseParser.cs
- DateTimeOffset.cs
- WebConfigurationFileMap.cs
- TextUtf8RawTextWriter.cs
- UriSection.cs
- FtpRequestCacheValidator.cs
- ConfigXmlCDataSection.cs
- ProjectionPath.cs
- QilTargetType.cs
- HttpValueCollection.cs
- TimelineGroup.cs
- SourceSwitch.cs
- WindowPattern.cs
- Stream.cs
- InputLanguage.cs
- ImageButton.cs
- MachineKeySection.cs
- SelectionPattern.cs
- XmlSchemaRedefine.cs
- XpsFont.cs
- TraceRecord.cs
- SqlUDTStorage.cs
- HtmlPanelAdapter.cs