Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CodeMethodInvokeExpression.cs
- TraceHandlerErrorFormatter.cs
- HostedTransportConfigurationBase.cs
- COM2ExtendedTypeConverter.cs
- FileBasedResourceGroveler.cs
- TextAutomationPeer.cs
- NetworkCredential.cs
- ScrollViewerAutomationPeer.cs
- BamlVersionHeader.cs
- LineServicesCallbacks.cs
- DrawingCollection.cs
- DeviceSpecificDialogCachedState.cs
- FixedSOMLineRanges.cs
- ListSortDescription.cs
- WindowsRegion.cs
- TextSpan.cs
- LassoSelectionBehavior.cs
- GPPOINT.cs
- RtfFormatStack.cs
- FormsIdentity.cs
- KnownBoxes.cs
- CharStorage.cs
- TextEditorTyping.cs
- EdmRelationshipRoleAttribute.cs
- TemplateBindingExpression.cs
- SqlBuffer.cs
- DockPatternIdentifiers.cs
- GridViewCommandEventArgs.cs
- PixelFormat.cs
- WebScriptMetadataFormatter.cs
- StringUtil.cs
- EventWaitHandleSecurity.cs
- DbConnectionClosed.cs
- HostingEnvironmentWrapper.cs
- SymbolType.cs
- SymmetricSecurityProtocol.cs
- SkinBuilder.cs
- StaticFileHandler.cs
- RIPEMD160Managed.cs
- ServiceEndpointAssociationProvider.cs
- CAGDesigner.cs
- UInt16Storage.cs
- XmlComment.cs
- __ConsoleStream.cs
- SafeNativeMethods.cs
- Update.cs
- DifferencingCollection.cs
- AlternateView.cs
- ModulesEntry.cs
- LeftCellWrapper.cs
- XslCompiledTransform.cs
- AttributeConverter.cs
- UpdateTracker.cs
- AutoGeneratedField.cs
- ListViewInsertionMark.cs
- ToolStripDropDownMenu.cs
- DiscardableAttribute.cs
- XpsS0ValidatingLoader.cs
- OletxVolatileEnlistment.cs
- KeyboardEventArgs.cs
- UdpDuplexChannel.cs
- ColumnWidthChangedEvent.cs
- WindowInteractionStateTracker.cs
- TextServicesPropertyRanges.cs
- _ChunkParse.cs
- MemberNameValidator.cs
- PassportIdentity.cs
- Model3D.cs
- HashSet.cs
- RuntimeHandles.cs
- VariableReference.cs
- Events.cs
- XmlWriterTraceListener.cs
- ModelVisual3D.cs
- ListSourceHelper.cs
- Identity.cs
- BitmapDecoder.cs
- ConcurrentDictionary.cs
- DataGridColumn.cs
- Helper.cs
- UserNameSecurityTokenAuthenticator.cs
- OpenTypeLayoutCache.cs
- GeneralTransform3DGroup.cs
- ByteStreamGeometryContext.cs
- WindowsTooltip.cs
- FrameworkElementFactory.cs
- ObjectListTitleAttribute.cs
- TreeView.cs
- ActivityScheduledQuery.cs
- RenderingBiasValidation.cs
- RepeaterItemEventArgs.cs
- DbConnectionPoolOptions.cs
- IOException.cs
- Merger.cs
- DataGridViewCellStyle.cs
- ChildTable.cs
- InvalidMessageContractException.cs
- XPathNode.cs
- DebugView.cs
- BreakRecordTable.cs