Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AssertSection.cs
- ElementHostPropertyMap.cs
- WebSysDisplayNameAttribute.cs
- GZipDecoder.cs
- Queue.cs
- ValidationError.cs
- InfoCardListRequest.cs
- SupportsEventValidationAttribute.cs
- SecurityResources.cs
- NavigationWindow.cs
- ClientUtils.cs
- ExportException.cs
- DataGridViewControlCollection.cs
- WindowsButton.cs
- Point3DAnimation.cs
- SystemColors.cs
- DockPattern.cs
- ObjectListFieldsPage.cs
- Graph.cs
- SessionSwitchEventArgs.cs
- ExpandCollapseProviderWrapper.cs
- ExternalException.cs
- Renderer.cs
- nulltextnavigator.cs
- EntryIndex.cs
- Annotation.cs
- DataGridCaption.cs
- PropertyPath.cs
- GenericWebPart.cs
- XmlObjectSerializerReadContextComplexJson.cs
- Int32Converter.cs
- AnnotationResourceChangedEventArgs.cs
- QilStrConcatenator.cs
- LeafCellTreeNode.cs
- Application.cs
- DataBinding.cs
- FrameworkName.cs
- AnnotationAdorner.cs
- UserControl.cs
- XmlStreamedByteStreamReader.cs
- Label.cs
- IntersectQueryOperator.cs
- mil_sdk_version.cs
- PreApplicationStartMethodAttribute.cs
- DataGridViewRowEventArgs.cs
- DesignerTransactionCloseEvent.cs
- AppDomainFactory.cs
- ObjectStorage.cs
- BitmapEncoder.cs
- MethodBuilder.cs
- Main.cs
- EntityDesignerDataSourceView.cs
- ApplicationFileCodeDomTreeGenerator.cs
- HttpListenerRequest.cs
- PenThread.cs
- ViewBox.cs
- TextBox.cs
- ImmutableObjectAttribute.cs
- _Win32.cs
- DateTimeOffsetStorage.cs
- ConfigXmlSignificantWhitespace.cs
- SrgsItemList.cs
- CorrelationScope.cs
- MouseActionConverter.cs
- MouseActionConverter.cs
- DataGridTextBoxColumn.cs
- Convert.cs
- EastAsianLunisolarCalendar.cs
- tibetanshape.cs
- ShaderRenderModeValidation.cs
- XmlSchemaFacet.cs
- DynamicQueryStringParameter.cs
- WindowAutomationPeer.cs
- RotateTransform3D.cs
- MarkupCompiler.cs
- MembershipValidatePasswordEventArgs.cs
- Soap11ServerProtocol.cs
- ProfilePropertyNameValidator.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SerializationAttributes.cs
- sapiproxy.cs
- Emitter.cs
- TextServicesContext.cs
- ProxyGenerator.cs
- LineMetrics.cs
- SHA512.cs
- SingleObjectCollection.cs
- XmlSchemaAnnotation.cs
- DataTableNewRowEvent.cs
- SmtpNegotiateAuthenticationModule.cs
- CellCreator.cs
- TableRowsCollectionEditor.cs
- CustomLineCap.cs
- ProxyWebPartConnectionCollection.cs
- StorageMappingItemCollection.cs
- EntitySqlQueryBuilder.cs
- HyperLinkStyle.cs
- BitSet.cs
- DataGridViewTextBoxCell.cs
- RequestBringIntoViewEventArgs.cs