Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 check the APTCA bit for modules (VSWhidbey 467768, 550122) _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 } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Model3DCollection.cs
- XmlTypeMapping.cs
- DiagnosticsConfiguration.cs
- ReceiveParametersContent.cs
- XmlElementCollection.cs
- MobileUserControl.cs
- ApplyTemplatesAction.cs
- DeviceContext2.cs
- PropertyFilterAttribute.cs
- Stackframe.cs
- FixedSOMGroup.cs
- FileLogRecordEnumerator.cs
- CharEntityEncoderFallback.cs
- DataControlFieldCell.cs
- Color.cs
- SubtreeProcessor.cs
- DataBoundControlHelper.cs
- UnsafeNativeMethods.cs
- SimpleBitVector32.cs
- AssemblyHash.cs
- FilterQueryOptionExpression.cs
- cookiecollection.cs
- WmpBitmapDecoder.cs
- OdbcEnvironmentHandle.cs
- HtmlInputFile.cs
- RelationshipNavigation.cs
- BinaryNode.cs
- ComplexType.cs
- SiteMapSection.cs
- DockingAttribute.cs
- GridViewColumnHeaderAutomationPeer.cs
- CodeTypeDelegate.cs
- WebResourceAttribute.cs
- PeerService.cs
- WindowsListViewGroup.cs
- ModifierKeysValueSerializer.cs
- Common.cs
- DataTableReader.cs
- RtfToXamlLexer.cs
- UriParserTemplates.cs
- ProfileGroupSettingsCollection.cs
- LocationSectionRecord.cs
- CodeExporter.cs
- DbDataSourceEnumerator.cs
- WebPartEditVerb.cs
- TextDecorationLocationValidation.cs
- HashSet.cs
- KnownBoxes.cs
- PropertyGridView.cs
- ClosableStream.cs
- TableLayoutStyleCollection.cs
- Transform3DGroup.cs
- BrushMappingModeValidation.cs
- ProviderConnectionPoint.cs
- Int32Animation.cs
- ConfigurationPermission.cs
- ObjectSelectorEditor.cs
- GlyphRunDrawing.cs
- UnsafeNativeMethodsPenimc.cs
- SiteMapDataSourceDesigner.cs
- IdentityManager.cs
- XmlJsonReader.cs
- UnsafeNativeMethods.cs
- ActivityXRefConverter.cs
- CallTemplateAction.cs
- ResponseStream.cs
- TextRangeEdit.cs
- DefaultProxySection.cs
- DynamicResourceExtension.cs
- ForwardPositionQuery.cs
- ListQueryResults.cs
- CfgParser.cs
- ToolboxItemImageConverter.cs
- DBBindings.cs
- ConfigXmlWhitespace.cs
- ToolStripMenuItem.cs
- PropertyInformation.cs
- XNodeNavigator.cs
- MessageHeaderAttribute.cs
- NativeMethods.cs
- FormViewPagerRow.cs
- ToolStripOverflowButton.cs
- PropertyPathConverter.cs
- BufferedOutputStream.cs
- ExpressionVisitor.cs
- ProfilePropertySettingsCollection.cs
- DynamicScriptObject.cs
- HierarchicalDataSourceControl.cs
- PenCursorManager.cs
- JavaScriptObjectDeserializer.cs
- ValuePatternIdentifiers.cs
- HwndHost.cs
- MDIWindowDialog.cs
- Timer.cs
- PropertyInformation.cs
- EntityDataSourceEntitySetNameItem.cs
- DataReceivedEventArgs.cs
- Socket.cs
- DbConnectionHelper.cs
- InvalidEnumArgumentException.cs