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
- ConfigXmlAttribute.cs
- DataGridTablesFactory.cs
- Normalizer.cs
- QilStrConcatenator.cs
- OleAutBinder.cs
- RecommendedAsConfigurableAttribute.cs
- ServiceErrorHandler.cs
- DescendentsWalkerBase.cs
- ShellProvider.cs
- TiffBitmapEncoder.cs
- IpcChannelHelper.cs
- XmlNodeComparer.cs
- JsonClassDataContract.cs
- FileDetails.cs
- TimeSpanParse.cs
- fixedPageContentExtractor.cs
- Schema.cs
- HttpModuleActionCollection.cs
- ToolBarPanel.cs
- MSAANativeProvider.cs
- SqlReorderer.cs
- AccessDataSourceView.cs
- QueryPageSettingsEventArgs.cs
- PolyQuadraticBezierSegment.cs
- TextTreeText.cs
- XNameTypeConverter.cs
- UIElementParagraph.cs
- XpsFixedPageReaderWriter.cs
- BaseTemplateBuildProvider.cs
- PersistenceException.cs
- Debug.cs
- SymmetricCryptoHandle.cs
- AgileSafeNativeMemoryHandle.cs
- EnumValidator.cs
- ThemeConfigurationDialog.cs
- TimeSpanStorage.cs
- DependencyObjectCodeDomSerializer.cs
- ItemList.cs
- CompleteWizardStep.cs
- CodeVariableDeclarationStatement.cs
- OperationContext.cs
- CollectionViewProxy.cs
- SqlUtil.cs
- TextFormatterImp.cs
- LassoHelper.cs
- ToolStripRendererSwitcher.cs
- SignatureResourcePool.cs
- ProtectedConfiguration.cs
- ListViewItem.cs
- EventDescriptor.cs
- MasterPageCodeDomTreeGenerator.cs
- XPathSelfQuery.cs
- PropertyMappingExceptionEventArgs.cs
- EncryptedKeyHashIdentifierClause.cs
- FilteredDataSetHelper.cs
- EventLogPermissionEntry.cs
- EndpointFilterProvider.cs
- ViewBase.cs
- DockingAttribute.cs
- HostTimeoutsElement.cs
- Wizard.cs
- dbenumerator.cs
- ReflectionTypeLoadException.cs
- WebPartMenu.cs
- CharacterMetrics.cs
- SymLanguageType.cs
- ConnectionProviderAttribute.cs
- LogAppendAsyncResult.cs
- Path.cs
- HttpRawResponse.cs
- ConfigurationConverterBase.cs
- SqlClientPermission.cs
- EdmConstants.cs
- SoapRpcServiceAttribute.cs
- PropertyGrid.cs
- SimpleHandlerFactory.cs
- FilteredDataSetHelper.cs
- QuaternionKeyFrameCollection.cs
- DropSource.cs
- ConfigurationException.cs
- ZoneLinkButton.cs
- ServicePoint.cs
- DeobfuscatingStream.cs
- PropertyFilter.cs
- StyleModeStack.cs
- StrongNamePublicKeyBlob.cs
- MobileControlsSectionHelper.cs
- infer.cs
- FloatUtil.cs
- WebZone.cs
- ClientRolePrincipal.cs
- TransformCryptoHandle.cs
- SourceElementsCollection.cs
- MenuStrip.cs
- BindingExpressionUncommonField.cs
- XmlExtensionFunction.cs
- XmlSchemaIdentityConstraint.cs
- WeakReferenceEnumerator.cs
- BCLDebug.cs
- WebPartManager.cs