Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / ModulesEntry.cs / 1 / ModulesEntry.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Config related classes for HttpApplication * */ namespace System.Web.Configuration.Common { using System.Runtime.Serialization.Formatters; using System.Threading; using System.Runtime.InteropServices; using System.ComponentModel; using System.Collections; using System.Reflection; using System.Globalization; using System.Configuration; using System.Web; using System.Web.SessionState; using System.Web.Security; using System.Web.Util; using System.Web.Compilation; /* * Single Entry of request to class */ internal class ModulesEntry { private String _name; private Type _type; internal ModulesEntry(String name, String typeName, string propertyName, ConfigurationElement configElement) { _name = (name != null) ? name : String.Empty; // Don't _type = ConfigUtil.GetType(typeName, propertyName, configElement, false /*checkAptcaBit*/); if (!typeof(IHttpModule).IsAssignableFrom(_type)) { if (configElement == null) { throw new ConfigurationErrorsException(SR.GetString(SR.Type_not_module, typeName)); } else { throw new ConfigurationErrorsException(SR.GetString(SR.Type_not_module, typeName), configElement.ElementInformation.Properties["type"].Source, configElement.ElementInformation.Properties["type"].LineNumber); } } } internal static bool IsTypeMatch(Type type, String typeName) { return(type.Name.Equals(typeName) || type.FullName.Equals(typeName)); } internal String ModuleName { get { return _name; } } internal /*public*/ IHttpModule Create() { return (IHttpModule)HttpRuntime.CreateNonPublicInstance(_type); } #if UNUSED_CODE internal /*public*/ Type Type { get { return _type; } } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ModelItemExtensions.cs
- WindowVisualStateTracker.cs
- GenericRootAutomationPeer.cs
- XmlDataLoader.cs
- RuntimeResourceSet.cs
- TableLayoutPanelCellPosition.cs
- OleDbConnectionFactory.cs
- FixedTextBuilder.cs
- TaiwanLunisolarCalendar.cs
- Block.cs
- TextBoxAutomationPeer.cs
- ToolStripDropDownClosedEventArgs.cs
- XNodeValidator.cs
- DataColumnMapping.cs
- DelayedRegex.cs
- WsdlHelpGeneratorElement.cs
- PartManifestEntry.cs
- IsolatedStorageFileStream.cs
- __Filters.cs
- CodeSnippetStatement.cs
- DynamicDiscoSearcher.cs
- DataServiceHost.cs
- TraceLog.cs
- OptionalMessageQuery.cs
- TextChangedEventArgs.cs
- ScriptingJsonSerializationSection.cs
- cryptoapiTransform.cs
- TableMethodGenerator.cs
- DomNameTable.cs
- ResourcePool.cs
- ObjectDataSource.cs
- hebrewshape.cs
- BaseCodeDomTreeGenerator.cs
- TimerElapsedEvenArgs.cs
- TableRowCollection.cs
- BitmapImage.cs
- RuntimeHelpers.cs
- Package.cs
- IntSecurity.cs
- SynchronizedDispatch.cs
- MediaElement.cs
- XhtmlBasicPhoneCallAdapter.cs
- QilInvokeLateBound.cs
- HtmlTableRow.cs
- EdmFunctionAttribute.cs
- PropertyDescriptorGridEntry.cs
- DataGridViewRowHeaderCell.cs
- SystemIPGlobalStatistics.cs
- ControlDesigner.cs
- DesignerContextDescriptor.cs
- ToolStripDropDownClosedEventArgs.cs
- Attachment.cs
- ViewLoader.cs
- NavigationPropertyEmitter.cs
- WindowsFormsSynchronizationContext.cs
- TypeDescriptionProviderAttribute.cs
- LoginUtil.cs
- Focus.cs
- InstancePersistenceContext.cs
- CalendarDesigner.cs
- WebPartDeleteVerb.cs
- XmlUtf8RawTextWriter.cs
- OAVariantLib.cs
- ResolveMatchesMessageCD1.cs
- ToolStripDropTargetManager.cs
- CreateUserErrorEventArgs.cs
- ArcSegment.cs
- CommonObjectSecurity.cs
- XmlLanguageConverter.cs
- ErrorTableItemStyle.cs
- SymbolType.cs
- SchemaCollectionPreprocessor.cs
- XmlSchemaSimpleContentRestriction.cs
- PeekCompletedEventArgs.cs
- DelegatingConfigHost.cs
- UserMapPath.cs
- Effect.cs
- TabControlEvent.cs
- SuppressMessageAttribute.cs
- _NestedMultipleAsyncResult.cs
- PrintDialogException.cs
- PartialList.cs
- DropDownList.cs
- HttpsTransportElement.cs
- OracleFactory.cs
- CompilerHelpers.cs
- AuthenticationManager.cs
- AutomationTextAttribute.cs
- DataGridAddNewRow.cs
- clipboard.cs
- TypeGeneratedEventArgs.cs
- XmlDataProvider.cs
- DataGridViewSortCompareEventArgs.cs
- Transform.cs
- ServiceModelActivationSectionGroup.cs
- cryptoapiTransform.cs
- CompatibleComparer.cs
- FormatterServices.cs
- StringUtil.cs
- ResourcePool.cs