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
- BufferedMessageWriter.cs
- TableDetailsRow.cs
- OleDbConnectionInternal.cs
- BinarySecretKeyIdentifierClause.cs
- HtmlTernaryTree.cs
- RectValueSerializer.cs
- HttpListenerException.cs
- ScrollItemPatternIdentifiers.cs
- AttachmentService.cs
- ListControlConvertEventArgs.cs
- ErasingStroke.cs
- OleDbErrorCollection.cs
- CodeEntryPointMethod.cs
- InstanceData.cs
- DesignerActionVerbList.cs
- FontUnit.cs
- Merger.cs
- LongCountAggregationOperator.cs
- BooleanFunctions.cs
- ConstructorExpr.cs
- ClaimSet.cs
- TextDocumentView.cs
- LogStream.cs
- CultureInfoConverter.cs
- AnnouncementDispatcherAsyncResult.cs
- AssemblyAttributes.cs
- XPathDocumentBuilder.cs
- WebPartCloseVerb.cs
- DbDataAdapter.cs
- CodeTypeParameter.cs
- InfoCardProofToken.cs
- TypeExtension.cs
- OperationCanceledException.cs
- TreeNodeBinding.cs
- RegexGroup.cs
- RecommendedAsConfigurableAttribute.cs
- TableSectionStyle.cs
- FakeModelPropertyImpl.cs
- ListDictionary.cs
- Propagator.Evaluator.cs
- FontFamilyValueSerializer.cs
- BindingContext.cs
- HashAlgorithm.cs
- SessionStateItemCollection.cs
- WindowsSlider.cs
- RtfToken.cs
- WindowsToolbar.cs
- AssociatedControlConverter.cs
- InlineCollection.cs
- Error.cs
- Int32Collection.cs
- FullTextBreakpoint.cs
- StorageEntityTypeMapping.cs
- PathFigure.cs
- UseManagedPresentationBindingElement.cs
- TransactionManager.cs
- SafeProcessHandle.cs
- Stream.cs
- TrustLevelCollection.cs
- WorkflowHostingResponseContext.cs
- StylusShape.cs
- NumberSubstitution.cs
- ResourceContainer.cs
- PowerModeChangedEventArgs.cs
- DataTable.cs
- OpenFileDialog.cs
- DataContractSerializerOperationBehavior.cs
- DefaultDialogButtons.cs
- ShapeTypeface.cs
- MenuItem.cs
- SqlClientWrapperSmiStreamChars.cs
- ProgressBar.cs
- WindowsFormsSectionHandler.cs
- XNodeSchemaApplier.cs
- GregorianCalendarHelper.cs
- ListViewGroupItemCollection.cs
- ComboBoxItem.cs
- Wrapper.cs
- Reference.cs
- ServiceModelEnumValidator.cs
- DataGridColumnFloatingHeader.cs
- PixelFormat.cs
- DockingAttribute.cs
- MimeFormImporter.cs
- TextBoxView.cs
- UpdatePanelTrigger.cs
- ElementNotAvailableException.cs
- MouseActionValueSerializer.cs
- SiteMapNodeItem.cs
- TraceHandler.cs
- FactoryGenerator.cs
- SByte.cs
- SamlAuthorizationDecisionStatement.cs
- ScrollItemPatternIdentifiers.cs
- GridProviderWrapper.cs
- TextTreeTextNode.cs
- Geometry.cs
- ActiveXMessageFormatter.cs
- RtfToXamlReader.cs
- Thumb.cs