Code:
/ FX-1434 / FX-1434 / 1.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
- DelegateArgumentValue.cs
- DynamicDocumentPaginator.cs
- UrlMapping.cs
- FormViewInsertedEventArgs.cs
- storepermission.cs
- SapiRecoInterop.cs
- ConfigUtil.cs
- ConfigPathUtility.cs
- CompiledScopeCriteria.cs
- GridViewColumn.cs
- DocobjHost.cs
- XmlStringTable.cs
- SingleAnimationUsingKeyFrames.cs
- ItemCheckedEvent.cs
- Empty.cs
- BitHelper.cs
- RayHitTestParameters.cs
- CompilerResults.cs
- BamlResourceDeserializer.cs
- ZipIOExtraFieldPaddingElement.cs
- WindowsListViewGroup.cs
- BaseProcessor.cs
- CodeDelegateInvokeExpression.cs
- XmlAttribute.cs
- WinFormsComponentEditor.cs
- RSACryptoServiceProvider.cs
- HtmlFormAdapter.cs
- AccessedThroughPropertyAttribute.cs
- DataGridViewSelectedCellCollection.cs
- CustomWebEventKey.cs
- HostedNamedPipeTransportManager.cs
- IndependentlyAnimatedPropertyMetadata.cs
- MarginCollapsingState.cs
- DaylightTime.cs
- Stroke2.cs
- GroupQuery.cs
- TypeHelpers.cs
- InkCollectionBehavior.cs
- DataRowChangeEvent.cs
- EntitySetBaseCollection.cs
- WindowsListViewScroll.cs
- BitmapEffectGroup.cs
- Literal.cs
- MsmqAuthenticationMode.cs
- EllipticalNodeOperations.cs
- TextEditorCopyPaste.cs
- SqlDataSourceCache.cs
- _AuthenticationState.cs
- MembershipValidatePasswordEventArgs.cs
- RealProxy.cs
- PermissionSetEnumerator.cs
- ListViewCancelEventArgs.cs
- CompositeControl.cs
- ContainerFilterService.cs
- ActivityExecutionWorkItem.cs
- PngBitmapEncoder.cs
- OverrideMode.cs
- XslException.cs
- MessageDescription.cs
- Int16AnimationUsingKeyFrames.cs
- CompiledScopeCriteria.cs
- UnsafeNativeMethods.cs
- SpellerError.cs
- ToolStripDropDownClosingEventArgs.cs
- SmtpNegotiateAuthenticationModule.cs
- EventLogException.cs
- ThousandthOfEmRealPoints.cs
- HttpProtocolImporter.cs
- _DisconnectOverlappedAsyncResult.cs
- AppSettingsSection.cs
- IncrementalReadDecoders.cs
- FileSystemWatcher.cs
- AppSecurityManager.cs
- TiffBitmapDecoder.cs
- EnterpriseServicesHelper.cs
- Int64.cs
- FunctionDescription.cs
- DocumentReferenceCollection.cs
- OleServicesContext.cs
- DataGridViewButtonColumn.cs
- CapabilitiesAssignment.cs
- TemplateParser.cs
- CodeDirectionExpression.cs
- WorkflowServiceBehavior.cs
- Formatter.cs
- StylusPlugin.cs
- SchemaImporterExtension.cs
- IERequestCache.cs
- WindowsSspiNegotiation.cs
- NonVisualControlAttribute.cs
- SoapTypeAttribute.cs
- PeerDefaultCustomResolverClient.cs
- PackagePart.cs
- WorkflowPersistenceService.cs
- ToolStripContainerActionList.cs
- FontNameEditor.cs
- XPathEmptyIterator.cs
- ColumnResizeUndoUnit.cs
- SHA512.cs
- Transform.cs