Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataBoundControlAdapter.cs
- HttpResponse.cs
- EdmSchemaError.cs
- DeclarativeCatalogPartDesigner.cs
- SplayTreeNode.cs
- MethodRental.cs
- TextSelectionHighlightLayer.cs
- InsufficientMemoryException.cs
- NativeObjectSecurity.cs
- RegionIterator.cs
- XamlInt32CollectionSerializer.cs
- SEHException.cs
- RoleManagerModule.cs
- DBPropSet.cs
- HtmlInputImage.cs
- CompilerError.cs
- SchemaInfo.cs
- GenerateTemporaryTargetAssembly.cs
- EntityDataSourceView.cs
- SafeMemoryMappedViewHandle.cs
- ScaleTransform.cs
- VirtualPathUtility.cs
- Exceptions.cs
- PermissionAttributes.cs
- AddInServer.cs
- SqlMultiplexer.cs
- SizeConverter.cs
- PerspectiveCamera.cs
- NavigateEvent.cs
- RSACryptoServiceProvider.cs
- DomNameTable.cs
- VectorCollection.cs
- RequestCachingSection.cs
- IMembershipProvider.cs
- EpmContentDeSerializer.cs
- NullableDoubleMinMaxAggregationOperator.cs
- BoundsDrawingContextWalker.cs
- MetadataItem.cs
- DataSvcMapFileSerializer.cs
- TemplatedWizardStep.cs
- EdmToObjectNamespaceMap.cs
- SchemaDeclBase.cs
- SystemResourceHost.cs
- SignatureConfirmations.cs
- MiniCustomAttributeInfo.cs
- MetadataArtifactLoaderCompositeFile.cs
- SamlAssertion.cs
- ColumnMapCopier.cs
- UnicodeEncoding.cs
- TextBoxLine.cs
- ClientTarget.cs
- WeakReference.cs
- DocumentOrderQuery.cs
- SystemThemeKey.cs
- QueryOptionExpression.cs
- ServiceBusyException.cs
- TableLayoutColumnStyleCollection.cs
- DataColumnCollection.cs
- InertiaExpansionBehavior.cs
- DataGridViewLinkColumn.cs
- UriSectionData.cs
- filewebresponse.cs
- XsdDuration.cs
- RowVisual.cs
- CommentGlyph.cs
- SingleStorage.cs
- PageTheme.cs
- SqlAliasesReferenced.cs
- SplitterCancelEvent.cs
- ResourcePart.cs
- XpsResource.cs
- HtmlEncodedRawTextWriter.cs
- JumpPath.cs
- ListViewTableRow.cs
- Table.cs
- DataRelationCollection.cs
- webeventbuffer.cs
- MachineKeySection.cs
- State.cs
- StrongNameUtility.cs
- PresentationAppDomainManager.cs
- TextElementEditingBehaviorAttribute.cs
- ViewEvent.cs
- XmlAttributeAttribute.cs
- SmtpClient.cs
- CommandHelper.cs
- PerformanceCounterNameAttribute.cs
- PerformanceCounterManager.cs
- _FixedSizeReader.cs
- RemotingConfigParser.cs
- XhtmlBasicValidationSummaryAdapter.cs
- XamlReaderConstants.cs
- PersonalizationProvider.cs
- ByteStreamMessage.cs
- OrderByQueryOptionExpression.cs
- ResXResourceSet.cs
- WebPartZoneBase.cs
- ClientConfigurationHost.cs
- XmlSchemaElement.cs
- GridToolTip.cs