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
- ListBoxAutomationPeer.cs
- SchemaTableColumn.cs
- TextSearch.cs
- SnapLine.cs
- InstanceValue.cs
- DecimalKeyFrameCollection.cs
- Operators.cs
- UnsafeNativeMethods.cs
- GenericAuthenticationEventArgs.cs
- NextPreviousPagerField.cs
- TextRange.cs
- Effect.cs
- OwnerDrawPropertyBag.cs
- SqlUserDefinedAggregateAttribute.cs
- ParenthesizePropertyNameAttribute.cs
- DataControlButton.cs
- InternalResources.cs
- BitmapImage.cs
- XmlNotation.cs
- HttpCookieCollection.cs
- CodeDomSerializer.cs
- Atom10FormatterFactory.cs
- RegistryPermission.cs
- CacheMemory.cs
- BidPrivateBase.cs
- MissingMethodException.cs
- FixedElement.cs
- XmlBinaryReader.cs
- SendMailErrorEventArgs.cs
- CorePropertiesFilter.cs
- WrappedReader.cs
- _ContextAwareResult.cs
- WebPartConnectionsConnectVerb.cs
- SafeViewOfFileHandle.cs
- recordstate.cs
- TabItemAutomationPeer.cs
- BooleanAnimationBase.cs
- PointHitTestResult.cs
- StreamBodyWriter.cs
- NotifyParentPropertyAttribute.cs
- Preprocessor.cs
- FileUtil.cs
- localization.cs
- SpeechAudioFormatInfo.cs
- DataKeyArray.cs
- DescendantOverDescendantQuery.cs
- DbModificationCommandTree.cs
- RemotingException.cs
- HighContrastHelper.cs
- TrustManagerPromptUI.cs
- ScrollBar.cs
- Binding.cs
- PrintEvent.cs
- DataTablePropertyDescriptor.cs
- DataServiceQueryContinuation.cs
- SByteStorage.cs
- ListViewUpdateEventArgs.cs
- UniqueEventHelper.cs
- Manipulation.cs
- KeyBinding.cs
- XmlSchemaDocumentation.cs
- autovalidator.cs
- ConfigXmlAttribute.cs
- _AutoWebProxyScriptHelper.cs
- SqlColumnizer.cs
- ConfigXmlCDataSection.cs
- SpellerStatusTable.cs
- SamlAssertionKeyIdentifierClause.cs
- WebSysDefaultValueAttribute.cs
- ThreadAbortException.cs
- CodeVariableDeclarationStatement.cs
- Size3D.cs
- GridPatternIdentifiers.cs
- Vector3DAnimationBase.cs
- PlainXmlSerializer.cs
- EventBindingService.cs
- SplitterCancelEvent.cs
- CustomAttribute.cs
- CodeAttributeArgumentCollection.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- AnnotationResource.cs
- IdleTimeoutMonitor.cs
- LifetimeServices.cs
- PenThreadWorker.cs
- MethodBuilder.cs
- NameObjectCollectionBase.cs
- CoreSwitches.cs
- LocalizableAttribute.cs
- sqlstateclientmanager.cs
- RangeBaseAutomationPeer.cs
- SchemaElement.cs
- AsymmetricSignatureFormatter.cs
- LogRestartAreaEnumerator.cs
- Monitor.cs
- TextFormattingConverter.cs
- ConfigurationSchemaErrors.cs
- EdmProviderManifest.cs
- LocalizationCodeDomSerializer.cs
- OutKeywords.cs
- ObjectMemberMapping.cs