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
- OptimalTextSource.cs
- SequentialWorkflowRootDesigner.cs
- CapabilitiesUse.cs
- AppDomainManager.cs
- EmbeddedMailObjectsCollection.cs
- MessageTransmitTraceRecord.cs
- SimpleExpression.cs
- NativeRightsManagementAPIsStructures.cs
- DataGridViewCellStateChangedEventArgs.cs
- SerializationFieldInfo.cs
- isolationinterop.cs
- VerticalAlignConverter.cs
- RangeValuePattern.cs
- CriticalExceptions.cs
- LookupNode.cs
- srgsitem.cs
- HttpApplication.cs
- ObjectStateFormatter.cs
- _ScatterGatherBuffers.cs
- OracleConnectionStringBuilder.cs
- ExpressionBinding.cs
- CompilerWrapper.cs
- PlanCompiler.cs
- Missing.cs
- XmlSchemaAttributeGroupRef.cs
- HttpResponseHeader.cs
- ConnectionPointCookie.cs
- DocumentReferenceCollection.cs
- CodeTypeParameterCollection.cs
- MorphHelpers.cs
- FontStretch.cs
- WorkItem.cs
- OleDbWrapper.cs
- WindowsTokenRoleProvider.cs
- WindowHideOrCloseTracker.cs
- Grant.cs
- MessagePropertyDescription.cs
- Base64WriteStateInfo.cs
- PeerObject.cs
- DataReaderContainer.cs
- EntityViewGenerator.cs
- XmlSignatureManifest.cs
- System.Data.OracleClient_BID.cs
- SharedPersonalizationStateInfo.cs
- ConfigurationSection.cs
- IxmlLineInfo.cs
- EntityDataSourceContextCreatingEventArgs.cs
- DesignerHelpers.cs
- PeerNameRecord.cs
- NetworkInterface.cs
- GeneralTransform2DTo3D.cs
- ZoneMembershipCondition.cs
- CodeExpressionCollection.cs
- UdpUtility.cs
- UrlPropertyAttribute.cs
- EntityTransaction.cs
- ControlPaint.cs
- InvalidDocumentContentsException.cs
- TextChangedEventArgs.cs
- COM2ComponentEditor.cs
- HighlightComponent.cs
- ObjectPropertyMapping.cs
- PageContentAsyncResult.cs
- SrgsGrammarCompiler.cs
- XmlNodeWriter.cs
- FrameworkEventSource.cs
- HtmlControlAdapter.cs
- WorkflowLayouts.cs
- RoleGroupCollectionEditor.cs
- EvidenceTypeDescriptor.cs
- LogicalExpr.cs
- TimeSpan.cs
- DataServiceHostWrapper.cs
- DocumentPaginator.cs
- ResourceDictionaryCollection.cs
- Separator.cs
- DataListCommandEventArgs.cs
- IBuiltInEvidence.cs
- PackageRelationshipSelector.cs
- GridViewRowEventArgs.cs
- Roles.cs
- SpellerError.cs
- GenerateScriptTypeAttribute.cs
- WebRequestModuleElementCollection.cs
- DataGridViewCellValidatingEventArgs.cs
- SortQuery.cs
- HotCommands.cs
- TabControl.cs
- MachineKey.cs
- Scheduler.cs
- StyleCollection.cs
- DataGridViewButtonCell.cs
- TextRangeAdaptor.cs
- DiscoveryClientChannelFactory.cs
- BitmapMetadataEnumerator.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- SqlBulkCopyColumnMapping.cs
- SqlDataAdapter.cs
- AttachmentService.cs
- NetworkInformationException.cs