Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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.] ///// 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
- EditorAttributeInfo.cs
- IPGlobalProperties.cs
- DataGridViewImageCell.cs
- AlternateViewCollection.cs
- SqlVisitor.cs
- UniqueEventHelper.cs
- ConnectionPoint.cs
- WriteableOnDemandPackagePart.cs
- BindingContext.cs
- NameValuePair.cs
- SmtpDigestAuthenticationModule.cs
- SingleConverter.cs
- BehaviorEditorPart.cs
- DataGridViewCellLinkedList.cs
- XsltFunctions.cs
- SiteMembershipCondition.cs
- StartUpEventArgs.cs
- PartitionResolver.cs
- IdentityNotMappedException.cs
- DeclaredTypeValidator.cs
- CursorConverter.cs
- PropertyTabAttribute.cs
- ReflectionHelper.cs
- DataGridAutoFormat.cs
- SettingsSection.cs
- ModuleBuilderData.cs
- SqlGenericUtil.cs
- ScriptServiceAttribute.cs
- Encoding.cs
- ConstructorBuilder.cs
- LicenseManager.cs
- ClientBuildManager.cs
- COM2Properties.cs
- QilDataSource.cs
- URLAttribute.cs
- DataSourceSerializationException.cs
- SignatureHelper.cs
- BackEase.cs
- ServiceInstanceProvider.cs
- DataGridRowClipboardEventArgs.cs
- TextWriterTraceListener.cs
- PenContexts.cs
- AddInProcess.cs
- DataServiceRequest.cs
- SQLGuidStorage.cs
- BaseParser.cs
- DiscardableAttribute.cs
- XmlComplianceUtil.cs
- processwaithandle.cs
- SwitchAttribute.cs
- Formatter.cs
- followingquery.cs
- IIS7WorkerRequest.cs
- UrlMappingCollection.cs
- OleDbCommand.cs
- SqlStatistics.cs
- DataListItem.cs
- ellipse.cs
- TextTreeRootTextBlock.cs
- WebPartsPersonalization.cs
- PrinterUnitConvert.cs
- AsyncDataRequest.cs
- ChameleonKey.cs
- ProfilePropertySettings.cs
- SystemResources.cs
- SHA512CryptoServiceProvider.cs
- DesignerUtility.cs
- ComponentEditorPage.cs
- XmlDocumentSurrogate.cs
- BitmapEffect.cs
- Window.cs
- entityreference_tresulttype.cs
- XmlSchemaDatatype.cs
- AcceleratedTokenProviderState.cs
- DelegateSerializationHolder.cs
- MediaPlayer.cs
- Command.cs
- InstanceNameConverter.cs
- ObjectReferenceStack.cs
- TablePattern.cs
- StoreAnnotationsMap.cs
- InheritanceAttribute.cs
- BitmapCacheBrush.cs
- GridViewSortEventArgs.cs
- DbQueryCommandTree.cs
- DocumentViewerAutomationPeer.cs
- SqlGenerator.cs
- RequestTimeoutManager.cs
- Camera.cs
- MessageEnumerator.cs
- X509ChainPolicy.cs
- precedingsibling.cs
- TimeSpan.cs
- TextSelectionHelper.cs
- XPathDocumentNavigator.cs
- RangeValidator.cs
- returneventsaver.cs
- NullRuntimeConfig.cs
- ImageCollectionCodeDomSerializer.cs
- DataPagerFieldCommandEventArgs.cs