Code:
/ 4.0 / 4.0 / 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.] ///// 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
- UnionExpr.cs
- HostedHttpContext.cs
- ProviderCollection.cs
- DrawingGroupDrawingContext.cs
- ToolStripTextBox.cs
- RectangleHotSpot.cs
- PerformanceCounter.cs
- SnapshotChangeTrackingStrategy.cs
- ExecutedRoutedEventArgs.cs
- XmlSortKeyAccumulator.cs
- AuthenticationConfig.cs
- ConversionHelper.cs
- StylusPlugInCollection.cs
- PartialTrustValidationBehavior.cs
- SByteStorage.cs
- DetailsViewRow.cs
- SizeChangedInfo.cs
- HandlerFactoryWrapper.cs
- OdbcPermission.cs
- Section.cs
- ClientProtocol.cs
- LocalizabilityAttribute.cs
- HighlightVisual.cs
- OpenFileDialog.cs
- EntityContainerAssociationSetEnd.cs
- LinqDataSourceValidationException.cs
- WebPartDeleteVerb.cs
- RemotingAttributes.cs
- ResourcePermissionBaseEntry.cs
- DiagnosticsConfiguration.cs
- XmlNodeChangedEventArgs.cs
- Camera.cs
- ForceCopyBuildProvider.cs
- ClientUtils.cs
- TypeToken.cs
- ActivityCodeDomSerializer.cs
- ErrorEventArgs.cs
- SkinBuilder.cs
- RenamedEventArgs.cs
- Listbox.cs
- DataObject.cs
- DocumentSchemaValidator.cs
- ValueTypeFixupInfo.cs
- EntitySet.cs
- _NestedSingleAsyncResult.cs
- VirtualPath.cs
- ComponentResourceKey.cs
- SocketElement.cs
- NegationPusher.cs
- WorkflowDataContext.cs
- UserPreferenceChangingEventArgs.cs
- BamlTreeNode.cs
- Point3DKeyFrameCollection.cs
- UniqueConstraint.cs
- DocumentViewer.cs
- DataRow.cs
- Paragraph.cs
- WebPartConnectionCollection.cs
- NumberFunctions.cs
- Glyph.cs
- TableStyle.cs
- UnsafeNativeMethods.cs
- ServiceSecurityAuditBehavior.cs
- EncoderParameter.cs
- SrgsElement.cs
- DashStyle.cs
- SchemaImporter.cs
- ServerValidateEventArgs.cs
- WmpBitmapEncoder.cs
- GridItemCollection.cs
- DefaultEvaluationContext.cs
- NullRuntimeConfig.cs
- ZipIOExtraFieldZip64Element.cs
- PathGeometry.cs
- MulticastDelegate.cs
- RuleInfoComparer.cs
- StoreItemCollection.cs
- LogExtentCollection.cs
- TemplateAction.cs
- FontResourceCache.cs
- WebPartAuthorizationEventArgs.cs
- OracleCommandBuilder.cs
- ContactManager.cs
- ControlBuilderAttribute.cs
- ConfigurationManager.cs
- ItemsControlAutomationPeer.cs
- PropertyCondition.cs
- SqlDelegatedTransaction.cs
- DialogDivider.cs
- AuthenticationServiceManager.cs
- TableColumnCollection.cs
- ObjectListFieldCollection.cs
- ContainerUtilities.cs
- StatusBarItem.cs
- ByteFacetDescriptionElement.cs
- Operand.cs
- AttributeCollection.cs
- BaseCodeDomTreeGenerator.cs
- RecognizerStateChangedEventArgs.cs
- DataTableMapping.cs