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
- FileDialogCustomPlace.cs
- ClosableStream.cs
- ErrorHandler.cs
- AutoScrollExpandMessageFilter.cs
- SessionPageStatePersister.cs
- WhitespaceReader.cs
- XmlSchemaSimpleTypeRestriction.cs
- SearchExpression.cs
- WebPartMinimizeVerb.cs
- XmlDocumentSurrogate.cs
- WrappingXamlSchemaContext.cs
- GraphicsPath.cs
- ColorInterpolationModeValidation.cs
- EdmToObjectNamespaceMap.cs
- FactoryRecord.cs
- DeferredTextReference.cs
- GenericArgumentsUpdater.cs
- PolyBezierSegment.cs
- MenuCommands.cs
- RootNamespaceAttribute.cs
- _OSSOCK.cs
- HtmlTableRow.cs
- EntryWrittenEventArgs.cs
- HostingEnvironmentException.cs
- CollectionEditorDialog.cs
- XmlDictionaryReader.cs
- XmlSchemaExternal.cs
- OdbcTransaction.cs
- Activity.cs
- LinkedResource.cs
- SystemParameters.cs
- SqlDataSourceTableQuery.cs
- Matrix.cs
- ScriptHandlerFactory.cs
- BrushConverter.cs
- DetailsViewRow.cs
- AdapterDictionary.cs
- DiscoveryProxy.cs
- DataPagerFieldItem.cs
- UriWriter.cs
- _DisconnectOverlappedAsyncResult.cs
- Label.cs
- CustomWebEventKey.cs
- EncoderFallback.cs
- TimeSpanConverter.cs
- InputBuffer.cs
- WindowsScroll.cs
- CodeTypeReferenceExpression.cs
- DesignerTransactionCloseEvent.cs
- Utils.cs
- RolePrincipal.cs
- CheckPair.cs
- DatatypeImplementation.cs
- UserControl.cs
- SynchronizedCollection.cs
- XmlCharType.cs
- DataGridRowClipboardEventArgs.cs
- DispatchOperation.cs
- DataTableTypeConverter.cs
- CodeTypeMemberCollection.cs
- XmlCharacterData.cs
- SqlError.cs
- TrackingValidationObjectDictionary.cs
- IProvider.cs
- ViewService.cs
- CodeRegionDirective.cs
- HttpPostServerProtocol.cs
- EntityDataSourceWrapper.cs
- HighlightVisual.cs
- sqlinternaltransaction.cs
- PackWebResponse.cs
- WindowsSecurityToken.cs
- codemethodreferenceexpression.cs
- SessionState.cs
- RuleSetBrowserDialog.cs
- _NegoState.cs
- IProducerConsumerCollection.cs
- ReaderContextStackData.cs
- SelectionItemPattern.cs
- SessionStateModule.cs
- Array.cs
- FrameworkContentElementAutomationPeer.cs
- SchemaImporterExtensionElement.cs
- AlgoModule.cs
- TypeInitializationException.cs
- SpeechUI.cs
- FontStretchConverter.cs
- Duration.cs
- WebConfigurationFileMap.cs
- ConditionValidator.cs
- BamlLocalizationDictionary.cs
- COM2IPerPropertyBrowsingHandler.cs
- CodeCatchClause.cs
- TreeViewItem.cs
- CreateDataSourceDialog.cs
- MsmqMessage.cs
- ReadOnlyAttribute.cs
- EditingMode.cs
- Rotation3D.cs
- HtmlImage.cs