Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / RuntimeConfigLKG.cs / 1305376 / 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
- IndexedWhereQueryOperator.cs
- WebPartExportVerb.cs
- DesignerVerbCollection.cs
- ToggleButtonAutomationPeer.cs
- httpapplicationstate.cs
- Translator.cs
- CodeVariableDeclarationStatement.cs
- ConfigurationValidatorAttribute.cs
- SourceInterpreter.cs
- __TransparentProxy.cs
- NotifyCollectionChangedEventArgs.cs
- SHA256.cs
- DataConnectionHelper.cs
- RawStylusActions.cs
- CompositeCollectionView.cs
- FilterRepeater.cs
- HttpProtocolReflector.cs
- TextRunTypographyProperties.cs
- XamlFigureLengthSerializer.cs
- SqlCacheDependencyDatabaseCollection.cs
- BaseServiceProvider.cs
- WebPartDisplayModeCollection.cs
- StreamHelper.cs
- FixedSOMTableRow.cs
- SimpleHandlerBuildProvider.cs
- BinaryConverter.cs
- GridItemPatternIdentifiers.cs
- NewExpression.cs
- FragmentQueryProcessor.cs
- PermissionRequestEvidence.cs
- CompiledQuery.cs
- EdmSchemaAttribute.cs
- DelegateBodyWriter.cs
- Utility.cs
- DataShape.cs
- ButtonBase.cs
- SiteMapProvider.cs
- DeferredTextReference.cs
- MemoryMappedFileSecurity.cs
- StrokeCollection2.cs
- XsltArgumentList.cs
- ManipulationVelocities.cs
- KoreanLunisolarCalendar.cs
- ProofTokenCryptoHandle.cs
- CompModSwitches.cs
- DependencyObjectProvider.cs
- HwndMouseInputProvider.cs
- MobileControlBuilder.cs
- ErrorStyle.cs
- ReferentialConstraint.cs
- DispatcherOperation.cs
- MessageDecoder.cs
- Underline.cs
- ClientScriptManager.cs
- Privilege.cs
- HttpResponseHeader.cs
- ReadOnlyDictionary.cs
- PasswordDeriveBytes.cs
- AdapterUtil.cs
- ApplicationId.cs
- SettingsProviderCollection.cs
- AdPostCacheSubstitution.cs
- CompilationSection.cs
- XXXInfos.cs
- InputGestureCollection.cs
- PtsHost.cs
- _SafeNetHandles.cs
- EntityDataSourceWrapper.cs
- ListParagraph.cs
- SliderAutomationPeer.cs
- assertwrapper.cs
- ProcessModelSection.cs
- UniqueIdentifierService.cs
- HostingEnvironmentException.cs
- StringResourceManager.cs
- DesignerTextWriter.cs
- EntityDataSourceSelectingEventArgs.cs
- FreezableDefaultValueFactory.cs
- FlowNode.cs
- NonClientArea.cs
- SqlCommand.cs
- DataBinding.cs
- TrackingProvider.cs
- embossbitmapeffect.cs
- ServiceBuildProvider.cs
- autovalidator.cs
- AlphaSortedEnumConverter.cs
- DependencyPropertyKey.cs
- TaskFileService.cs
- TreeNodeSelectionProcessor.cs
- WebPartConnectionsCloseVerb.cs
- Trigger.cs
- hebrewshape.cs
- EncryptedData.cs
- shaperfactoryquerycacheentry.cs
- ApplicationInfo.cs
- MediaTimeline.cs
- SoapMessage.cs
- ListDictionaryInternal.cs
- DataControlLinkButton.cs