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
- XmlSchemaCollection.cs
- XmlILIndex.cs
- _BasicClient.cs
- OptimalTextSource.cs
- LogLogRecordHeader.cs
- DateTimeValueSerializerContext.cs
- ReferentialConstraint.cs
- ZipFileInfoCollection.cs
- EventEntry.cs
- XmlDataContract.cs
- Polyline.cs
- WebPartMenu.cs
- CompModHelpers.cs
- DataGridViewBand.cs
- EntityUtil.cs
- PageThemeCodeDomTreeGenerator.cs
- DebugView.cs
- GetChildSubtree.cs
- BufferModesCollection.cs
- DecoderReplacementFallback.cs
- ProfileInfo.cs
- ExpressionVisitor.cs
- FamilyCollection.cs
- ReadContentAsBinaryHelper.cs
- InfoCardRequestException.cs
- TemplateLookupAction.cs
- StateMachineWorkflow.cs
- CodeSnippetTypeMember.cs
- ToolStripRendererSwitcher.cs
- LocalizationComments.cs
- EventMap.cs
- TemplateXamlParser.cs
- RectangleHotSpot.cs
- MissingMethodException.cs
- DataGridViewTopRowAccessibleObject.cs
- BitStack.cs
- SubMenuStyle.cs
- SoapSchemaImporter.cs
- ObjectViewQueryResultData.cs
- ProjectionCamera.cs
- PopupRoot.cs
- OperandQuery.cs
- _Semaphore.cs
- TypedColumnHandler.cs
- CapabilitiesRule.cs
- GlobalAllocSafeHandle.cs
- ConditionalAttribute.cs
- OverlappedAsyncResult.cs
- NotImplementedException.cs
- XmlTypeMapping.cs
- FormsAuthenticationUserCollection.cs
- ScrollChangedEventArgs.cs
- UnionCodeGroup.cs
- QuaternionAnimation.cs
- DependencyPropertyHelper.cs
- NavigatingCancelEventArgs.cs
- OrderedHashRepartitionEnumerator.cs
- RegistrySecurity.cs
- TransformGroup.cs
- ComponentResourceKey.cs
- DataGridViewColumnDesigner.cs
- DesignerCapabilities.cs
- filewebresponse.cs
- AsyncStreamReader.cs
- IPPacketInformation.cs
- SemanticValue.cs
- WebServiceAttribute.cs
- AdornerPresentationContext.cs
- XPathBinder.cs
- TemplateControl.cs
- MultiPageTextView.cs
- Timer.cs
- HttpModuleActionCollection.cs
- ECDsaCng.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- IriParsingElement.cs
- GPStream.cs
- EmptyReadOnlyDictionaryInternal.cs
- CoTaskMemHandle.cs
- TaskFormBase.cs
- PackWebRequest.cs
- InfoCardMasterKey.cs
- SQLUtility.cs
- MappingSource.cs
- ParseChildrenAsPropertiesAttribute.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ScaleTransform.cs
- WindowsContainer.cs
- ResourceIDHelper.cs
- XmlSerializableWriter.cs
- GeneralTransform.cs
- Symbol.cs
- HttpDebugHandler.cs
- PublisherIdentityPermission.cs
- ZoneMembershipCondition.cs
- SecurityCriticalDataForSet.cs
- URLAttribute.cs
- HostingEnvironmentException.cs
- ConfigurationManagerHelper.cs
- DynamicILGenerator.cs