Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / ErrorRuntimeConfig.cs / 1305376 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigurationValues.cs
- VisemeEventArgs.cs
- ExceptionTrace.cs
- LogPolicy.cs
- SimpleHandlerBuildProvider.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RuleAttributes.cs
- UICuesEvent.cs
- NullRuntimeConfig.cs
- RuntimeIdentifierPropertyAttribute.cs
- Win32Exception.cs
- AbsoluteQuery.cs
- XmlNamespaceMapping.cs
- RTLAwareMessageBox.cs
- DockEditor.cs
- SqlConnectionStringBuilder.cs
- MetadataHelper.cs
- TextElementEnumerator.cs
- SafeNativeMethods.cs
- CodeMethodInvokeExpression.cs
- ConfigurationPropertyAttribute.cs
- GetPageNumberCompletedEventArgs.cs
- XmlCodeExporter.cs
- ProtocolsConfigurationHandler.cs
- EnumerationRangeValidationUtil.cs
- _LocalDataStore.cs
- AsnEncodedData.cs
- ChannelServices.cs
- StickyNoteContentControl.cs
- TreeNodeCollectionEditorDialog.cs
- AsnEncodedData.cs
- BaseDataBoundControlDesigner.cs
- LoadedOrUnloadedOperation.cs
- CompareValidator.cs
- _SslState.cs
- SelectedGridItemChangedEvent.cs
- CollectionTypeElement.cs
- WebPartDescription.cs
- DesignerOptionService.cs
- PreservationFileWriter.cs
- TraceUtility.cs
- SqlProviderServices.cs
- DictionaryEditChange.cs
- ObsoleteAttribute.cs
- LinearKeyFrames.cs
- XdrBuilder.cs
- EntityCommandCompilationException.cs
- ManipulationCompletedEventArgs.cs
- ContentHostHelper.cs
- SingleAnimationUsingKeyFrames.cs
- ProxyWebPartConnectionCollection.cs
- AttributeCollection.cs
- CompositeActivityValidator.cs
- UriExt.cs
- BitmapEffectDrawing.cs
- XamlTemplateSerializer.cs
- DataTableClearEvent.cs
- SuspendDesigner.cs
- Win32.cs
- BaseValidator.cs
- DecimalAnimationBase.cs
- FreezableCollection.cs
- DataGridViewDesigner.cs
- ScriptingRoleServiceSection.cs
- OleDbRowUpdatedEvent.cs
- VisualBrush.cs
- ExceptionHelpers.cs
- ListViewTableCell.cs
- DataGridToolTip.cs
- MasterPageBuildProvider.cs
- SchemaLookupTable.cs
- Model3DGroup.cs
- CacheSection.cs
- PocoPropertyAccessorStrategy.cs
- BindingExpression.cs
- MenuItemCollection.cs
- FormsAuthentication.cs
- ObjectDataSourceChooseTypePanel.cs
- MailWebEventProvider.cs
- DataGridViewCellCollection.cs
- AddInEnvironment.cs
- FileEnumerator.cs
- String.cs
- PrefixHandle.cs
- _CommandStream.cs
- HttpGetProtocolImporter.cs
- ListParagraph.cs
- XamlWriter.cs
- Comparer.cs
- WorkflowDesigner.cs
- Fonts.cs
- UserNamePasswordValidator.cs
- PrimaryKeyTypeConverter.cs
- DataRowChangeEvent.cs
- HashRepartitionStream.cs
- versioninfo.cs
- MarkupExtensionReturnTypeAttribute.cs
- WindowsBrush.cs
- DetailsViewUpdateEventArgs.cs
- ProcessHost.cs