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
- DataGridViewDataConnection.cs
- ProgressBarAutomationPeer.cs
- AssemblyInfo.cs
- DemultiplexingDispatchMessageFormatter.cs
- UnsafeNativeMethods.cs
- Comparer.cs
- DoubleStorage.cs
- Manipulation.cs
- PropertyItemInternal.cs
- EntityDataSourceReferenceGroup.cs
- LabelEditEvent.cs
- LinqDataSourceContextEventArgs.cs
- OleDbMetaDataFactory.cs
- Attribute.cs
- TypeUtil.cs
- ToolStripMenuItem.cs
- ResourcePart.cs
- HwndSubclass.cs
- TableLayoutPanelDesigner.cs
- Domain.cs
- CancelEventArgs.cs
- PersonalizablePropertyEntry.cs
- SplitterCancelEvent.cs
- RenderData.cs
- ExtendedPropertyCollection.cs
- InheritanceUI.cs
- Int32Rect.cs
- ipaddressinformationcollection.cs
- RangeValuePattern.cs
- LinqExpressionNormalizer.cs
- CodeMemberMethod.cs
- DataSourceView.cs
- dtdvalidator.cs
- _SafeNetHandles.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- MethodExpr.cs
- PasswordDeriveBytes.cs
- COAUTHIDENTITY.cs
- ObjectPersistData.cs
- TrustManager.cs
- returneventsaver.cs
- MatrixUtil.cs
- CodeSnippetExpression.cs
- FontStyle.cs
- PropertyInformation.cs
- PermissionAttributes.cs
- XmlNamespaceManager.cs
- arabicshape.cs
- CodeEventReferenceExpression.cs
- TextElement.cs
- MetaData.cs
- WebDisplayNameAttribute.cs
- CryptographicAttribute.cs
- mediaeventargs.cs
- IgnoreFileBuildProvider.cs
- FileSystemEventArgs.cs
- ValidationHelpers.cs
- ProxyWebPartConnectionCollection.cs
- InertiaExpansionBehavior.cs
- SafeNativeMethods.cs
- UniqueConstraint.cs
- Triplet.cs
- WebHeaderCollection.cs
- Rfc2898DeriveBytes.cs
- BaseValidator.cs
- MethodMessage.cs
- DataMemberConverter.cs
- RawStylusInputCustomData.cs
- SystemIcmpV4Statistics.cs
- DurableInstanceProvider.cs
- TwoPhaseCommit.cs
- ListItemCollection.cs
- RowBinding.cs
- BaseTemplateCodeDomTreeGenerator.cs
- FileSystemEventArgs.cs
- UserNameServiceElement.cs
- SuppressIldasmAttribute.cs
- ProcessModule.cs
- HostingEnvironmentException.cs
- Expressions.cs
- UrlMapping.cs
- TemplateField.cs
- ItemContainerProviderWrapper.cs
- BindingValueChangedEventArgs.cs
- BinaryObjectWriter.cs
- CacheEntry.cs
- DataGridViewTextBoxColumn.cs
- GAC.cs
- BindingManagerDataErrorEventArgs.cs
- CardSpaceException.cs
- TraceRecord.cs
- ServiceDesigner.cs
- OrderPreservingMergeHelper.cs
- XmlSchemaComplexContent.cs
- PeerNodeAddress.cs
- Error.cs
- HMACSHA512.cs
- JoinElimination.cs
- DataGridViewRowsAddedEventArgs.cs
- StylusPointPropertyUnit.cs