Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / ProtocolsConfigurationHandler.cs / 5 / ProtocolsConfigurationHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.IO; using System.Runtime.Serialization.Formatters; using System.Threading; using System.Runtime.InteropServices; using System.ComponentModel; using System.Collections; using System.Configuration; using System.Reflection; using System.Security; using System.Security.Permissions; using System.Globalization; using System.Web.Hosting; using System.Web.Security; using System.Web.Util; using System.Xml; // // Protocols config (machine.config only): // /**/ // [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public sealed class ProtocolsConfigurationHandler : IConfigurationSectionHandler { public ProtocolsConfigurationHandler() { } public object Create(Object parent, Object configContextObj, XmlNode section) { // can be called from client config ( default app domain) Debug.Assert(parent == null, " ... config is only allowed in machine.config"); return new ProtocolsConfiguration(section); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.IO; using System.Runtime.Serialization.Formatters; using System.Threading; using System.Runtime.InteropServices; using System.ComponentModel; using System.Collections; using System.Configuration; using System.Reflection; using System.Security; using System.Security.Permissions; using System.Globalization; using System.Web.Hosting; using System.Web.Security; using System.Web.Util; using System.Xml; // // Protocols config (machine.config only): // /**/ // [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public sealed class ProtocolsConfigurationHandler : IConfigurationSectionHandler { public ProtocolsConfigurationHandler() { } public object Create(Object parent, Object configContextObj, XmlNode section) { // can be called from client config ( default app domain) Debug.Assert(parent == null, " ... config is only allowed in machine.config"); return new ProtocolsConfiguration(section); } } } // 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
- TrackingStringDictionary.cs
- entityreference_tresulttype.cs
- FeatureManager.cs
- CreateParams.cs
- MissingSatelliteAssemblyException.cs
- X509Certificate2Collection.cs
- NativeMethods.cs
- TableLayoutPanelBehavior.cs
- ZipIORawDataFileBlock.cs
- WrappedIUnknown.cs
- XmlSerializationWriter.cs
- MetadataFile.cs
- StringAttributeCollection.cs
- SqlMetaData.cs
- ComAdminInterfaces.cs
- Panel.cs
- ProviderSettings.cs
- MenuStrip.cs
- DBSchemaRow.cs
- LayoutTable.cs
- SqlFileStream.cs
- SamlAssertion.cs
- ModelItemDictionary.cs
- SecurityDescriptor.cs
- Block.cs
- SubMenuStyle.cs
- ScrollChrome.cs
- SetUserPreferenceRequest.cs
- Line.cs
- DockAndAnchorLayout.cs
- WebPartTransformerCollection.cs
- XmlReflectionImporter.cs
- DNS.cs
- MessageEventSubscriptionService.cs
- Timer.cs
- PropertyGridView.cs
- HandlerFactoryCache.cs
- MgmtConfigurationRecord.cs
- CngKeyBlobFormat.cs
- TimelineGroup.cs
- _TimerThread.cs
- SmtpNtlmAuthenticationModule.cs
- CookieHandler.cs
- TreeBuilderBamlTranslator.cs
- latinshape.cs
- VBIdentifierDesigner.xaml.cs
- ColorBlend.cs
- DataControlPagerLinkButton.cs
- RowTypePropertyElement.cs
- SqlInfoMessageEvent.cs
- XmlSchemaSimpleContentRestriction.cs
- UriTemplateDispatchFormatter.cs
- WebPartEditorCancelVerb.cs
- GatewayDefinition.cs
- Types.cs
- FixedSOMPageElement.cs
- Attributes.cs
- AnimatedTypeHelpers.cs
- ImageListImageEditor.cs
- HostedNamedPipeTransportManager.cs
- TraceData.cs
- XmlDictionary.cs
- TrackingLocation.cs
- RelativeSource.cs
- SqlUtil.cs
- itemelement.cs
- ICollection.cs
- NavigateEvent.cs
- OdbcInfoMessageEvent.cs
- DataStreamFromComStream.cs
- DataIdProcessor.cs
- String.cs
- XmlBaseReader.cs
- MobileControlBuilder.cs
- ASCIIEncoding.cs
- RangeValidator.cs
- SqlProvider.cs
- CustomCategoryAttribute.cs
- MachineSettingsSection.cs
- OutputCacheModule.cs
- MetafileHeaderWmf.cs
- DataTablePropertyDescriptor.cs
- QilUnary.cs
- ProgressBarRenderer.cs
- VariantWrapper.cs
- ClientSettingsStore.cs
- FilterRepeater.cs
- ExpressionEditorAttribute.cs
- IconHelper.cs
- RectValueSerializer.cs
- Size3D.cs
- CustomValidator.cs
- RectangleHotSpot.cs
- Models.cs
- MobileErrorInfo.cs
- SafeProcessHandle.cs
- ActiveXSite.cs
- DocumentSchemaValidator.cs
- ResXResourceReader.cs
- WebZone.cs