Code:
/ DotNET / DotNET / 8.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
- GridViewUpdateEventArgs.cs
- Hyperlink.cs
- HttpModuleCollection.cs
- DBProviderConfigurationHandler.cs
- OleTxTransactionInfo.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- EventSinkActivityDesigner.cs
- hebrewshape.cs
- DataGridSortingEventArgs.cs
- CreateInstanceBinder.cs
- Marshal.cs
- TrackBar.cs
- CodeExpressionStatement.cs
- ListBoxChrome.cs
- ProtocolInformationReader.cs
- TreeNodeSelectionProcessor.cs
- WmfPlaceableFileHeader.cs
- SmiConnection.cs
- ExtensibleClassFactory.cs
- TagNameToTypeMapper.cs
- GridViewCellAutomationPeer.cs
- ObjectListFieldCollection.cs
- MemoryPressure.cs
- SetStoryboardSpeedRatio.cs
- DataGridViewMethods.cs
- HuffCodec.cs
- Win32.cs
- ReliabilityContractAttribute.cs
- NegationPusher.cs
- UnicastIPAddressInformationCollection.cs
- UnsafeNativeMethods.cs
- GenericArgumentsUpdater.cs
- SafePEFileHandle.cs
- PolygonHotSpot.cs
- HandleExceptionArgs.cs
- DocumentApplicationJournalEntry.cs
- DbgUtil.cs
- PropertyNames.cs
- CachingParameterInspector.cs
- AssemblyFilter.cs
- CSharpCodeProvider.cs
- TemplateBindingExtensionConverter.cs
- EventTrigger.cs
- SessionStateSection.cs
- IsolatedStorageSecurityState.cs
- MemberProjectionIndex.cs
- EmptyImpersonationContext.cs
- ImageConverter.cs
- FileDialog_Vista_Interop.cs
- XmlReflectionImporter.cs
- WebPartDisplayModeEventArgs.cs
- LocatorManager.cs
- PlatformNotSupportedException.cs
- XmlTextReader.cs
- DataSourceBooleanViewSchemaConverter.cs
- SessionState.cs
- EntityReference.cs
- ISAPIWorkerRequest.cs
- LocalizationComments.cs
- SystemResources.cs
- SpotLight.cs
- PixelFormats.cs
- RenderingBiasValidation.cs
- Rotation3DAnimationUsingKeyFrames.cs
- CodeArrayIndexerExpression.cs
- WorkflowServiceAttributes.cs
- RectValueSerializer.cs
- ConfigurationConverterBase.cs
- SubpageParaClient.cs
- TextSchema.cs
- SapiRecognizer.cs
- TableLayoutRowStyleCollection.cs
- UnicodeEncoding.cs
- CodeDOMProvider.cs
- EventSchemaTraceListener.cs
- DrawingAttributeSerializer.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DoubleAnimation.cs
- NotImplementedException.cs
- SiteMapNodeCollection.cs
- CodeDomConfigurationHandler.cs
- SiteMapProvider.cs
- BaseCollection.cs
- SourceChangedEventArgs.cs
- UnaryExpression.cs
- XmlStringTable.cs
- ComplexObject.cs
- RoleBoolean.cs
- EventLogPermissionAttribute.cs
- NoResizeSelectionBorderGlyph.cs
- InstallHelper.cs
- Point3DIndependentAnimationStorage.cs
- PersianCalendar.cs
- RowToFieldTransformer.cs
- WebMessageBodyStyleHelper.cs
- Model3D.cs
- CodePageUtils.cs
- DataGridViewCheckBoxCell.cs
- _ScatterGatherBuffers.cs
- ProtocolElement.cs