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
- SourceLocation.cs
- InstanceOwnerQueryResult.cs
- MultipleViewProviderWrapper.cs
- ArrayHelper.cs
- BooleanAnimationUsingKeyFrames.cs
- ProgressChangedEventArgs.cs
- XmlSchemaComplexContent.cs
- DataService.cs
- Composition.cs
- IncrementalHitTester.cs
- Rule.cs
- SqlXmlStorage.cs
- MailAddress.cs
- TypedTableBaseExtensions.cs
- HotSpotCollection.cs
- BaseTypeViewSchema.cs
- FixedDocument.cs
- StreamGeometryContext.cs
- XmlDataProvider.cs
- MetadataCacheItem.cs
- SingleStorage.cs
- UpdateManifestForBrowserApplication.cs
- TypeReference.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SiteMapNodeItemEventArgs.cs
- SqlDataSourceStatusEventArgs.cs
- DoubleCollectionValueSerializer.cs
- SetterBaseCollection.cs
- ImageUrlEditor.cs
- Image.cs
- NativeCppClassAttribute.cs
- WorkflowRuntimeElement.cs
- M3DUtil.cs
- SessionStateItemCollection.cs
- NotCondition.cs
- ToolStripDropDownMenu.cs
- DataControlFieldCollection.cs
- Dump.cs
- CommandHelper.cs
- CachedTypeface.cs
- InkCanvasSelectionAdorner.cs
- AttachmentService.cs
- OracleCommandSet.cs
- SystemColors.cs
- InternalsVisibleToAttribute.cs
- XPathDocumentBuilder.cs
- CodeComment.cs
- ImportCatalogPart.cs
- TextRenderer.cs
- DeviceFiltersSection.cs
- LinearGradientBrush.cs
- SimpleRecyclingCache.cs
- SqlBooleanMismatchVisitor.cs
- RemoteWebConfigurationHost.cs
- RequestCachePolicy.cs
- unsafenativemethodsother.cs
- ViewStateException.cs
- DoubleAnimationBase.cs
- ArrayTypeMismatchException.cs
- LookupTables.cs
- DataGridCaption.cs
- ImageBrush.cs
- XmlLanguage.cs
- QueryReaderSettings.cs
- CheckedListBox.cs
- InputLanguage.cs
- DataGridViewButtonColumn.cs
- ToolStripSplitStackLayout.cs
- GridPattern.cs
- PageTheme.cs
- GroupBoxDesigner.cs
- InternalSendMessage.cs
- DataServiceExpressionVisitor.cs
- ThreadBehavior.cs
- ListBox.cs
- DropDownButton.cs
- OpCodes.cs
- WebEventCodes.cs
- ToolStripSeparator.cs
- AsyncCallback.cs
- BulletDecorator.cs
- SchemaObjectWriter.cs
- SmiContextFactory.cs
- SafeNativeMethods.cs
- LoadWorkflowAsyncResult.cs
- TreeNodeCollection.cs
- IsolatedStorageFile.cs
- NativeMethods.cs
- QilScopedVisitor.cs
- ProfessionalColorTable.cs
- TreeNode.cs
- DependencyObject.cs
- ListViewTableCell.cs
- MulticastNotSupportedException.cs
- Menu.cs
- TableRowGroup.cs
- VectorCollectionConverter.cs
- PeerNameRecord.cs
- ImageDrawing.cs
- KeyValueConfigurationCollection.cs