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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignerWithHeader.cs
- CodeDomLoader.cs
- QilLiteral.cs
- TabItemAutomationPeer.cs
- EditorPartCollection.cs
- ListDictionary.cs
- TypeLibConverter.cs
- XmlTextEncoder.cs
- TreeViewItemAutomationPeer.cs
- AudioSignalProblemOccurredEventArgs.cs
- hresults.cs
- RectIndependentAnimationStorage.cs
- QueryExpr.cs
- DataGridViewDataErrorEventArgs.cs
- TransactionTable.cs
- InkCanvas.cs
- ResourceDisplayNameAttribute.cs
- ColorContextHelper.cs
- SchemaExporter.cs
- StylusOverProperty.cs
- SqlBulkCopyColumnMappingCollection.cs
- CompilerTypeWithParams.cs
- LoginUtil.cs
- BindingCompleteEventArgs.cs
- SignedInfo.cs
- PersonalizablePropertyEntry.cs
- DBConnectionString.cs
- DbConnectionStringCommon.cs
- DebugView.cs
- VersionPair.cs
- BrushMappingModeValidation.cs
- MouseButton.cs
- SynchronizationContext.cs
- WindowsPen.cs
- controlskin.cs
- TypeUsage.cs
- ObjectSet.cs
- ClientScriptManager.cs
- WebSysDescriptionAttribute.cs
- MdiWindowListItemConverter.cs
- TreeView.cs
- X509Certificate.cs
- ElementHostAutomationPeer.cs
- Rect.cs
- EpmHelper.cs
- OleDbWrapper.cs
- MultiTrigger.cs
- ReferencedCollectionType.cs
- RootBrowserWindowAutomationPeer.cs
- DataTemplateSelector.cs
- PersonalizationDictionary.cs
- RecognizedWordUnit.cs
- Dictionary.cs
- EdmRelationshipRoleAttribute.cs
- LoginCancelEventArgs.cs
- SourceChangedEventArgs.cs
- ArgumentOutOfRangeException.cs
- DataQuery.cs
- TabRenderer.cs
- SerialPort.cs
- DynamicRenderer.cs
- SqlServer2KCompatibilityAnnotation.cs
- EraserBehavior.cs
- SizeChangedInfo.cs
- Size.cs
- MemberPath.cs
- RootAction.cs
- ConnectionPoolManager.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- FileNotFoundException.cs
- Errors.cs
- _NegoStream.cs
- WindowsTokenRoleProvider.cs
- DescriptionAttribute.cs
- InternalConfigSettingsFactory.cs
- ContourSegment.cs
- WebBrowserSiteBase.cs
- HuffCodec.cs
- ViewStateException.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- FixedTextBuilder.cs
- ServiceDebugBehavior.cs
- XamlNamespaceHelper.cs
- AllMembershipCondition.cs
- TaskHelper.cs
- Win32Native.cs
- AuthenticatedStream.cs
- HtmlWindow.cs
- DesignTimeVisibleAttribute.cs
- ScriptHandlerFactory.cs
- FileRecordSequence.cs
- LockCookie.cs
- ChannelCredentials.cs
- BasicExpressionVisitor.cs
- AesCryptoServiceProvider.cs
- XmlNamespaceManager.cs
- DependencyObjectPropertyDescriptor.cs
- Configuration.cs
- ComponentRenameEvent.cs
- ThemeDirectoryCompiler.cs