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
- Span.cs
- MimeImporter.cs
- TrustManager.cs
- ListBoxItem.cs
- EncodingInfo.cs
- PanelDesigner.cs
- CachedFontFamily.cs
- ReflectionServiceProvider.cs
- CapabilitiesRule.cs
- OutputCacheProfileCollection.cs
- FrameworkContentElement.cs
- WebPartMovingEventArgs.cs
- Win32MouseDevice.cs
- VariableReference.cs
- TextEditorMouse.cs
- WebPartsSection.cs
- Debug.cs
- XomlCompilerParameters.cs
- X509CertificateValidator.cs
- PeerInvitationResponse.cs
- MouseGesture.cs
- DataContext.cs
- MetadataException.cs
- ReadOnlyDataSource.cs
- COM2IDispatchConverter.cs
- StartUpEventArgs.cs
- StateItem.cs
- SortedDictionary.cs
- MessageQueuePermissionEntry.cs
- EntityClientCacheKey.cs
- SqlCommandBuilder.cs
- EventEntry.cs
- StretchValidation.cs
- CaretElement.cs
- Peer.cs
- TextServicesCompartmentEventSink.cs
- ImageKeyConverter.cs
- SafeSecurityHandles.cs
- RefreshEventArgs.cs
- Image.cs
- PrincipalPermission.cs
- XmlCharType.cs
- Deserializer.cs
- InvokeMethodDesigner.xaml.cs
- StylusOverProperty.cs
- SubqueryRules.cs
- ResourceSetExpression.cs
- SmtpNetworkElement.cs
- AtomMaterializerLog.cs
- MenuItem.cs
- XmlSchemaParticle.cs
- PrimitiveType.cs
- RegionInfo.cs
- EventPropertyMap.cs
- ImpersonateTokenRef.cs
- UrlMapping.cs
- ParameterCollection.cs
- WsatServiceAddress.cs
- ServiceDescriptions.cs
- InputScopeNameConverter.cs
- DataGridAddNewRow.cs
- Configuration.cs
- FontStretches.cs
- LocalizedNameDescriptionPair.cs
- ContractReference.cs
- DispatchWrapper.cs
- Win32SafeHandles.cs
- versioninfo.cs
- DispatchWrapper.cs
- FragmentQueryKB.cs
- RootNamespaceAttribute.cs
- Metadata.cs
- TypeHelpers.cs
- TabletDevice.cs
- MethodRental.cs
- SqlUserDefinedTypeAttribute.cs
- WebScriptMetadataInstanceContextProvider.cs
- DataMemberListEditor.cs
- DoWhile.cs
- StickyNoteContentControl.cs
- PtsPage.cs
- TransactionFormatter.cs
- ItemCheckedEvent.cs
- Mappings.cs
- Win32Native.cs
- TableLayoutColumnStyleCollection.cs
- PngBitmapEncoder.cs
- OrderedDictionaryStateHelper.cs
- Attributes.cs
- AnimationException.cs
- BinaryWriter.cs
- EventProperty.cs
- WebPartEditorOkVerb.cs
- DiscoveryDocumentReference.cs
- CodeGeneratorOptions.cs
- BaseParaClient.cs
- WebPartsPersonalization.cs
- CTreeGenerator.cs
- JoinElimination.cs
- RouteItem.cs