Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / ModulesEntry.cs / 2 / 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
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- MruCache.cs
- GridSplitterAutomationPeer.cs
- DebugView.cs
- ResourceExpressionBuilder.cs
- ToolStripLabel.cs
- Geometry.cs
- MenuRendererStandards.cs
- XPathItem.cs
- DataGridViewComboBoxCell.cs
- PointLight.cs
- UIHelper.cs
- CngProperty.cs
- ThaiBuddhistCalendar.cs
- DependencyObjectType.cs
- ConnectionProviderAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- MailMessageEventArgs.cs
- StringFunctions.cs
- ObjectQuery.cs
- InProcStateClientManager.cs
- xmlfixedPageInfo.cs
- RoleProviderPrincipal.cs
- DrawingState.cs
- ProfilePropertyMetadata.cs
- GuidelineSet.cs
- CheckBox.cs
- UIElementParaClient.cs
- BitmapFrameDecode.cs
- ReadOnlyDictionary.cs
- DigitShape.cs
- OrthographicCamera.cs
- Stackframe.cs
- CheckBox.cs
- CornerRadiusConverter.cs
- WebPartDisplayModeCancelEventArgs.cs
- ZipIOCentralDirectoryBlock.cs
- ChtmlTextBoxAdapter.cs
- ConditionCollection.cs
- DataBinding.cs
- SQLDecimalStorage.cs
- Switch.cs
- WebConfigurationHost.cs
- COM2AboutBoxPropertyDescriptor.cs
- PersonalizationStateQuery.cs
- IOException.cs
- TypeNameConverter.cs
- StringConverter.cs
- EarlyBoundInfo.cs
- Sql8ExpressionRewriter.cs
- Panel.cs
- ApplicationHost.cs
- InstanceData.cs
- RelationshipEndMember.cs
- WindowsToolbar.cs
- DirectoryInfo.cs
- Addressing.cs
- AttributeAction.cs
- webclient.cs
- ColumnMapVisitor.cs
- ExceptionUtil.cs
- CubicEase.cs
- FormViewInsertEventArgs.cs
- XmlException.cs
- XmlBoundElement.cs
- FileUtil.cs
- PowerStatus.cs
- securitycriticaldataClass.cs
- mda.cs
- SmiRequestExecutor.cs
- ZipIOFileItemStream.cs
- ItemMap.cs
- RootAction.cs
- ObjectListCommandEventArgs.cs
- Rule.cs
- DecimalConverter.cs
- MatrixTransform.cs
- HelpProvider.cs
- CommonProperties.cs
- TraceSource.cs
- IssuanceLicense.cs
- DoubleAnimationUsingPath.cs
- SingleBodyParameterMessageFormatter.cs
- UInt64Converter.cs
- CqlWriter.cs
- TabOrder.cs
- Pen.cs
- StorageSetMapping.cs
- ApplicationCommands.cs
- Keywords.cs
- ProfileSection.cs
- ParameterDataSourceExpression.cs
- TraceContextRecord.cs
- ModelItemDictionaryImpl.cs
- ConnectionStringsExpressionBuilder.cs
- ConcurrentStack.cs
- objectresult_tresulttype.cs
- UntrustedRecipientException.cs
- TableItemProviderWrapper.cs
- WebPartConnectVerb.cs