Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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 } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LoginName.cs
- DirectoryGroupQuery.cs
- MessageLoggingFilterTraceRecord.cs
- TraversalRequest.cs
- CapabilitiesAssignment.cs
- AnnotationResourceChangedEventArgs.cs
- TypeToken.cs
- FileNotFoundException.cs
- SoapAttributeOverrides.cs
- ToolStripSplitStackLayout.cs
- SymbolTable.cs
- ContractSearchPattern.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ResourceSetExpression.cs
- NativeMethods.cs
- LineSegment.cs
- ToolZone.cs
- Slider.cs
- ContentPresenter.cs
- XmlWellformedWriter.cs
- ObjectConverter.cs
- MulticastDelegate.cs
- RelationshipEndMember.cs
- SoapFault.cs
- ResourceDescriptionAttribute.cs
- TextEditorParagraphs.cs
- RowType.cs
- IteratorFilter.cs
- DataServiceRequestArgs.cs
- ToolStripStatusLabel.cs
- Effect.cs
- DataServiceRequest.cs
- PartialTrustVisibleAssemblyCollection.cs
- SqlTransaction.cs
- DeferredElementTreeState.cs
- StateBag.cs
- COM2TypeInfoProcessor.cs
- TrustLevelCollection.cs
- RegexFCD.cs
- MethodBody.cs
- Win32KeyboardDevice.cs
- WebEventCodes.cs
- RNGCryptoServiceProvider.cs
- WebPartCloseVerb.cs
- StringUtil.cs
- CharacterString.cs
- ConnectionStringsExpressionBuilder.cs
- TrackingLocation.cs
- HMACSHA256.cs
- ErrorCodes.cs
- MessageBox.cs
- CompoundFileReference.cs
- BitmapEffectrendercontext.cs
- TypeProvider.cs
- RootBrowserWindowAutomationPeer.cs
- CodeTypeReferenceExpression.cs
- IndentedWriter.cs
- Color.cs
- DefaultObjectMappingItemCollection.cs
- DynamicControlParameter.cs
- HtmlInputRadioButton.cs
- ExpressionBindingCollection.cs
- XPathCompileException.cs
- UIInitializationException.cs
- InputLangChangeEvent.cs
- DiscoveryMessageSequence11.cs
- DrawListViewColumnHeaderEventArgs.cs
- DbConnectionHelper.cs
- SystemWebSectionGroup.cs
- EntitySetBase.cs
- EntitySqlQueryBuilder.cs
- MeasurementDCInfo.cs
- WebPartMinimizeVerb.cs
- RowToParametersTransformer.cs
- TypeConverter.cs
- TimeBoundedCache.cs
- SeparatorAutomationPeer.cs
- ObjectQueryExecutionPlan.cs
- PackageProperties.cs
- WmlLinkAdapter.cs
- RTTypeWrapper.cs
- TypeElement.cs
- TypedDatasetGenerator.cs
- ObsoleteAttribute.cs
- UnsafeNativeMethods.cs
- ConfigPathUtility.cs
- ExceptionUtility.cs
- CommandPlan.cs
- DynamicRenderer.cs
- AddInPipelineAttributes.cs
- RowSpanVector.cs
- TextChange.cs
- ListSourceHelper.cs
- VisualStyleInformation.cs
- RegexFCD.cs
- NamespaceDisplayAutomationPeer.cs
- CharacterString.cs
- NullReferenceException.cs
- TaskbarItemInfo.cs
- Panel.cs