Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / RuntimeConfigLKG.cs / 1 / RuntimeConfigLKG.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Collections; using System.Configuration; using System.Configuration.Internal; using System.Security.Permissions; using System.Web; using System.Web.Util; using System.Web.Hosting; using System.Web.Configuration; using ClassHttpRuntime=System.Web.HttpRuntime; using ClassHostingEnvironment=System.Web.Hosting.HostingEnvironment; namespace System.Web.Configuration { // // RuntimeConfig class that implements LKG functionality. // internal class RuntimeConfigLKG : RuntimeConfig { // // Note that if configRecord is null, we are the LKG for the ClientRuntimeConfig. // internal RuntimeConfigLKG(IInternalConfigRecord configRecord) : base(configRecord, true) {} [ConfigurationPermission(SecurityAction.Assert, Unrestricted=true)] protected override object GetSectionObject(string sectionName) { if (_configRecord != null) { return _configRecord.GetLkgSection(sectionName); } else { try { return ConfigurationManager.GetSection(sectionName); } catch { return null; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Collections; using System.Configuration; using System.Configuration.Internal; using System.Security.Permissions; using System.Web; using System.Web.Util; using System.Web.Hosting; using System.Web.Configuration; using ClassHttpRuntime=System.Web.HttpRuntime; using ClassHostingEnvironment=System.Web.Hosting.HostingEnvironment; namespace System.Web.Configuration { // // RuntimeConfig class that implements LKG functionality. // internal class RuntimeConfigLKG : RuntimeConfig { // // Note that if configRecord is null, we are the LKG for the ClientRuntimeConfig. // internal RuntimeConfigLKG(IInternalConfigRecord configRecord) : base(configRecord, true) {} [ConfigurationPermission(SecurityAction.Assert, Unrestricted=true)] protected override object GetSectionObject(string sectionName) { if (_configRecord != null) { return _configRecord.GetLkgSection(sectionName); } else { try { return ConfigurationManager.GetSection(sectionName); } catch { return null; } } } } } // 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
- CompiledIdentityConstraint.cs
- TextFindEngine.cs
- BamlReader.cs
- XPathDocument.cs
- Constant.cs
- ToolStripItemTextRenderEventArgs.cs
- Executor.cs
- ImageButton.cs
- ConfigurationSettings.cs
- Triplet.cs
- RegexRunnerFactory.cs
- UrlParameterReader.cs
- WebPartManager.cs
- DynamicValidatorEventArgs.cs
- FrameworkRichTextComposition.cs
- InstanceBehavior.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- MonthCalendarDesigner.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ComplexLine.cs
- CanonicalXml.cs
- ActivityMarkupSerializationProvider.cs
- UpDownEvent.cs
- XPathExpr.cs
- SiteMapProvider.cs
- CodeMethodReturnStatement.cs
- BinaryParser.cs
- Vars.cs
- oledbmetadatacolumnnames.cs
- WebZone.cs
- Types.cs
- MouseButtonEventArgs.cs
- SafeArrayTypeMismatchException.cs
- CallContext.cs
- MimeTypeMapper.cs
- RuleSet.cs
- AsyncOperation.cs
- PrePrepareMethodAttribute.cs
- XPathExpr.cs
- ContactManager.cs
- ControlValuePropertyAttribute.cs
- MediaContext.cs
- RecipientInfo.cs
- HttpCachePolicyElement.cs
- RangeBaseAutomationPeer.cs
- Rect3D.cs
- EventManager.cs
- SqlNotificationEventArgs.cs
- BuildProviderCollection.cs
- XsltArgumentList.cs
- PixelFormat.cs
- SQLInt64Storage.cs
- CurrencyWrapper.cs
- ViewGenResults.cs
- Debug.cs
- XamlPoint3DCollectionSerializer.cs
- WebServiceParameterData.cs
- BooleanAnimationBase.cs
- Metadata.cs
- PerformanceCountersBase.cs
- PieceNameHelper.cs
- MediaScriptCommandRoutedEventArgs.cs
- HotCommands.cs
- ModuleBuilderData.cs
- DecimalMinMaxAggregationOperator.cs
- COM2Properties.cs
- IgnoreSectionHandler.cs
- DbConnectionClosed.cs
- ConnectionManagementElementCollection.cs
- SrgsRulesCollection.cs
- SortedDictionary.cs
- ConfigXmlElement.cs
- ConstrainedDataObject.cs
- RefreshEventArgs.cs
- XsltContext.cs
- SqlTypesSchemaImporter.cs
- XhtmlBasicLiteralTextAdapter.cs
- DirectionalLight.cs
- Camera.cs
- HttpContext.cs
- DictionarySurrogate.cs
- CrossContextChannel.cs
- InternalPermissions.cs
- CodeExpressionStatement.cs
- EntityDataSourceView.cs
- InputChannelBinder.cs
- RegionIterator.cs
- ClientRuntimeConfig.cs
- BrowserCapabilitiesCodeGenerator.cs
- ColorMap.cs
- XmlDataSourceNodeDescriptor.cs
- ConnectionsZoneAutoFormat.cs
- ObjectPersistData.cs
- FormatStringEditor.cs
- SpecularMaterial.cs
- NavigationProgressEventArgs.cs
- GeometryHitTestResult.cs
- ProjectionPruner.cs
- WebCategoryAttribute.cs
- HttpListenerException.cs