Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / ErrorRuntimeConfig.cs / 1 / ErrorRuntimeConfig.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Configuration; using System.Configuration.Internal; using System.Web.Util; // // Any attempt to access any section will result in an exception. // internal class ErrorRuntimeConfig : RuntimeConfig { internal ErrorRuntimeConfig() : base(new ErrorConfigRecord(), false) {} protected override object GetSectionObject(string sectionName) { throw new ConfigurationErrorsException(); } // // Any attempt to access the record will result in an exception. // private class ErrorConfigRecord : IInternalConfigRecord { internal ErrorConfigRecord() { } string IInternalConfigRecord.ConfigPath { get { throw new ConfigurationErrorsException(); } } string IInternalConfigRecord.StreamName { get { throw new ConfigurationErrorsException(); } } bool IInternalConfigRecord.HasInitErrors { get { return true; } } void IInternalConfigRecord.ThrowIfInitErrors() { throw new ConfigurationErrorsException(); } object IInternalConfigRecord.GetSection(string configKey) { throw new ConfigurationErrorsException(); } object IInternalConfigRecord.GetLkgSection(string configKey) { throw new ConfigurationErrorsException(); } void IInternalConfigRecord.RefreshSection(string configKey) { throw new ConfigurationErrorsException(); } void IInternalConfigRecord.Remove() { throw new ConfigurationErrorsException(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Configuration; using System.Configuration.Internal; using System.Web.Util; // // Any attempt to access any section will result in an exception. // internal class ErrorRuntimeConfig : RuntimeConfig { internal ErrorRuntimeConfig() : base(new ErrorConfigRecord(), false) {} protected override object GetSectionObject(string sectionName) { throw new ConfigurationErrorsException(); } // // Any attempt to access the record will result in an exception. // private class ErrorConfigRecord : IInternalConfigRecord { internal ErrorConfigRecord() { } string IInternalConfigRecord.ConfigPath { get { throw new ConfigurationErrorsException(); } } string IInternalConfigRecord.StreamName { get { throw new ConfigurationErrorsException(); } } bool IInternalConfigRecord.HasInitErrors { get { return true; } } void IInternalConfigRecord.ThrowIfInitErrors() { throw new ConfigurationErrorsException(); } object IInternalConfigRecord.GetSection(string configKey) { throw new ConfigurationErrorsException(); } object IInternalConfigRecord.GetLkgSection(string configKey) { throw new ConfigurationErrorsException(); } void IInternalConfigRecord.RefreshSection(string configKey) { throw new ConfigurationErrorsException(); } void IInternalConfigRecord.Remove() { throw new ConfigurationErrorsException(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Point4DValueSerializer.cs
- DataTableMappingCollection.cs
- DataGridViewCellStyleBuilderDialog.cs
- DetailsViewDesigner.cs
- SchemaImporterExtension.cs
- CorruptingExceptionCommon.cs
- XmlName.cs
- Executor.cs
- AdvancedBindingEditor.cs
- DetailsViewUpdatedEventArgs.cs
- objectquery_tresulttype.cs
- XmlQualifiedName.cs
- XmlHierarchyData.cs
- CellPartitioner.cs
- SqlBooleanMismatchVisitor.cs
- DrawingCollection.cs
- TabPage.cs
- FillBehavior.cs
- DynamicArgumentDesigner.xaml.cs
- PropertiesTab.cs
- UpDownBase.cs
- UIElementHelper.cs
- EvidenceBase.cs
- TypeProvider.cs
- XmlLinkedNode.cs
- DataGridCellInfo.cs
- SynchronousChannelMergeEnumerator.cs
- ISFTagAndGuidCache.cs
- OdbcFactory.cs
- PropertyTabAttribute.cs
- FormViewUpdatedEventArgs.cs
- ViewGenResults.cs
- Tuple.cs
- ConnectorEditor.cs
- PathSegmentCollection.cs
- TreeNodeStyleCollection.cs
- QueryOptionExpression.cs
- StorageMappingFragment.cs
- Merger.cs
- ListViewSortEventArgs.cs
- QueryableDataSourceHelper.cs
- SQLInt64Storage.cs
- TrackingMemoryStream.cs
- MulticastDelegate.cs
- TrackingProfileDeserializationException.cs
- ZipIOExtraField.cs
- BulletChrome.cs
- FixedFlowMap.cs
- BatchWriter.cs
- __Filters.cs
- TableLayout.cs
- ApplyTemplatesAction.cs
- NewExpression.cs
- Selection.cs
- GridItemProviderWrapper.cs
- Section.cs
- CompressStream.cs
- GridSplitter.cs
- XmlSchema.cs
- CodeAssignStatement.cs
- XmlSchemaValidator.cs
- ResXBuildProvider.cs
- HttpListenerContext.cs
- ModifierKeysValueSerializer.cs
- SingleTagSectionHandler.cs
- SafeCryptHandles.cs
- TdsParserStaticMethods.cs
- DataBindingValueUIHandler.cs
- UIElementIsland.cs
- MailWebEventProvider.cs
- _NativeSSPI.cs
- FlowSwitchLink.cs
- HashMembershipCondition.cs
- TypeLoadException.cs
- DataKey.cs
- RegexStringValidator.cs
- WebPartConnectionCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- PointCollection.cs
- ButtonBaseAutomationPeer.cs
- HttpHandlerAction.cs
- XmlDataDocument.cs
- EncodingInfo.cs
- Overlapped.cs
- CharAnimationBase.cs
- SegmentInfo.cs
- CommandField.cs
- ExtendedProtectionPolicy.cs
- XmlSortKeyAccumulator.cs
- SystemIPGlobalStatistics.cs
- SystemIPGlobalProperties.cs
- FileLevelControlBuilderAttribute.cs
- EventLogPermissionEntryCollection.cs
- FactoryId.cs
- OleCmdHelper.cs
- DataBindingCollection.cs
- HttpCapabilitiesEvaluator.cs
- QuaternionValueSerializer.cs
- DnsPermission.cs
- ShadowGlyph.cs