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
- HttpConfigurationSystem.cs
- DataGridViewRow.cs
- ExceptionUtil.cs
- Encoder.cs
- TextElement.cs
- EntityCommandCompilationException.cs
- _LoggingObject.cs
- Color.cs
- StructuredTypeInfo.cs
- ContourSegment.cs
- UnsafeNativeMethods.cs
- ScriptReferenceEventArgs.cs
- StringAnimationBase.cs
- BindingValueChangedEventArgs.cs
- Attributes.cs
- AuthorizationSection.cs
- ProtocolViolationException.cs
- Span.cs
- AssociatedControlConverter.cs
- BamlCollectionHolder.cs
- DeclarativeConditionsCollection.cs
- ChildTable.cs
- ExceptionHandler.cs
- BamlMapTable.cs
- ResXResourceSet.cs
- StatusCommandUI.cs
- RsaKeyIdentifierClause.cs
- PointUtil.cs
- PrintingPermissionAttribute.cs
- BufferModesCollection.cs
- ValidatingReaderNodeData.cs
- RightsManagementEncryptedStream.cs
- TypeUtil.cs
- TagPrefixInfo.cs
- WebPartZone.cs
- StopStoryboard.cs
- SecurityKeyEntropyMode.cs
- SafeNativeMethods.cs
- HttpWriter.cs
- VectorKeyFrameCollection.cs
- X509CertificateChain.cs
- Stylesheet.cs
- XmlEntityReference.cs
- WebPartEditVerb.cs
- SqlDataSourceConnectionPanel.cs
- DeploymentSection.cs
- CodeCompileUnit.cs
- OpCodes.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- BaseServiceProvider.cs
- DataGridViewRowHeaderCell.cs
- EditingMode.cs
- CatalogZoneBase.cs
- OutputWindow.cs
- ConsumerConnectionPointCollection.cs
- ImageDrawing.cs
- ConfigurationElementCollection.cs
- Trace.cs
- CardSpaceSelector.cs
- ImmutableObjectAttribute.cs
- EditCommandColumn.cs
- MultiPageTextView.cs
- ToolBarButtonClickEvent.cs
- AddInEnvironment.cs
- BamlRecordReader.cs
- ColumnHeader.cs
- GrabHandleGlyph.cs
- AnimatedTypeHelpers.cs
- BufferAllocator.cs
- SchemaComplexType.cs
- SqlFunctionAttribute.cs
- SecurityContextCookieSerializer.cs
- XmlMtomWriter.cs
- ZipIOCentralDirectoryBlock.cs
- loginstatus.cs
- MinMaxParagraphWidth.cs
- TemplateAction.cs
- RegexNode.cs
- SQLResource.cs
- AnonymousIdentificationSection.cs
- DbExpressionBuilder.cs
- PropertyNames.cs
- PackageRelationship.cs
- CultureTable.cs
- HtmlProps.cs
- Matrix3D.cs
- MergeLocalizationDirectives.cs
- FixedPageProcessor.cs
- DrawingGroup.cs
- DataGridViewTopRowAccessibleObject.cs
- UnsafeNativeMethodsMilCoreApi.cs
- DecimalAnimation.cs
- RuleSettings.cs
- ApplicationInfo.cs
- GridViewSortEventArgs.cs
- HelpEvent.cs
- TextBounds.cs
- DecoderFallback.cs
- SystemIPInterfaceStatistics.cs
- _KerberosClient.cs