Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. //------------------------------------------------------------------------------ //[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.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AlternateViewCollection.cs
- SqlMethodAttribute.cs
- SimpleHandlerBuildProvider.cs
- BitmapMetadataBlob.cs
- DbSetClause.cs
- FontSizeConverter.cs
- EventToken.cs
- StyleConverter.cs
- ProviderConnectionPoint.cs
- Span.cs
- TabPage.cs
- DataGridDesigner.cs
- CryptographicAttribute.cs
- PeerNameRecord.cs
- control.ime.cs
- WebPartHelpVerb.cs
- Pair.cs
- RepeaterCommandEventArgs.cs
- PageParserFilter.cs
- GenericUI.cs
- OpCodes.cs
- PackageDigitalSignatureManager.cs
- GregorianCalendar.cs
- ApplicationId.cs
- RawUIStateInputReport.cs
- UnsettableComboBox.cs
- HwndSourceParameters.cs
- BookmarkScopeManager.cs
- WebPartCloseVerb.cs
- InteropTrackingRecord.cs
- TextBoxAutomationPeer.cs
- MsmqInputSessionChannelListener.cs
- SrgsOneOf.cs
- EmptyTextWriter.cs
- PropertyGridEditorPart.cs
- HtmlElementCollection.cs
- ReverseInheritProperty.cs
- DES.cs
- CodeTypeDelegate.cs
- CacheHelper.cs
- XmlWrappingReader.cs
- Directory.cs
- TreeIterator.cs
- HScrollProperties.cs
- DbDeleteCommandTree.cs
- EnumUnknown.cs
- ExpressionHelper.cs
- xsdvalidator.cs
- BitStream.cs
- KnownBoxes.cs
- StylusSystemGestureEventArgs.cs
- AttributeQuery.cs
- HtmlHead.cs
- dataprotectionpermission.cs
- TypedAsyncResult.cs
- dataprotectionpermission.cs
- XmlElementCollection.cs
- CodeAttributeArgumentCollection.cs
- CodeDirectionExpression.cs
- WeakReference.cs
- IconConverter.cs
- MD5CryptoServiceProvider.cs
- RectangleConverter.cs
- LicenseProviderAttribute.cs
- ByteViewer.cs
- NativeBuffer.cs
- AspCompat.cs
- SqlDataAdapter.cs
- FrameAutomationPeer.cs
- PenContext.cs
- IDReferencePropertyAttribute.cs
- SpellerError.cs
- Operators.cs
- Hash.cs
- ApplicationBuildProvider.cs
- DataListItemEventArgs.cs
- CodeDirectiveCollection.cs
- Emitter.cs
- WindowsButton.cs
- ExtendedPropertyCollection.cs
- PanelDesigner.cs
- WindowsFormsHostAutomationPeer.cs
- FullTextLine.cs
- SchemaImporterExtension.cs
- SurrogateEncoder.cs
- HwndAppCommandInputProvider.cs
- WebConfigurationManager.cs
- ThemeInfoAttribute.cs
- ConfigXmlAttribute.cs
- EastAsianLunisolarCalendar.cs
- SqlDataSourceEnumerator.cs
- XhtmlBasicTextBoxAdapter.cs
- IntSecurity.cs
- DataGridViewRow.cs
- DataServiceException.cs
- InputLangChangeEvent.cs
- NotifyInputEventArgs.cs
- AlignmentYValidation.cs
- EmptyEnumerator.cs
- FileLogRecord.cs