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
- MasterPage.cs
- List.cs
- CollectionType.cs
- PackageProperties.cs
- WebBrowserDesigner.cs
- FileSystemWatcher.cs
- WebPartMinimizeVerb.cs
- HybridDictionary.cs
- lengthconverter.cs
- SqlCacheDependencySection.cs
- WebPartExportVerb.cs
- CharConverter.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- DataExchangeServiceBinder.cs
- SpotLight.cs
- QueryParameter.cs
- MonthCalendar.cs
- SymDocumentType.cs
- BinaryWriter.cs
- PenLineCapValidation.cs
- BrowserDefinition.cs
- CommandEventArgs.cs
- _FtpControlStream.cs
- InputLanguageSource.cs
- ToolStripItemEventArgs.cs
- AppModelKnownContentFactory.cs
- ListControl.cs
- Group.cs
- SafeNativeMemoryHandle.cs
- XamlPathDataSerializer.cs
- InternalUserCancelledException.cs
- BookmarkResumptionRecord.cs
- CircleHotSpot.cs
- LinqDataView.cs
- CachedPathData.cs
- QualifierSet.cs
- BasicExpandProvider.cs
- XNameConverter.cs
- CodeAssignStatement.cs
- RowParagraph.cs
- CacheForPrimitiveTypes.cs
- webeventbuffer.cs
- ComponentRenameEvent.cs
- SHA384Managed.cs
- TypeEnumerableViewSchema.cs
- StylusCollection.cs
- RestHandlerFactory.cs
- HierarchicalDataSourceDesigner.cs
- BuilderInfo.cs
- TableChangeProcessor.cs
- TableColumnCollectionInternal.cs
- AttributeUsageAttribute.cs
- ReadOnlyCollection.cs
- Block.cs
- SamlDoNotCacheCondition.cs
- ChannelBinding.cs
- FormatException.cs
- MultiTouchSystemGestureLogic.cs
- CalendarTable.cs
- CounterCreationData.cs
- HttpWriter.cs
- InvokeHandlers.cs
- TextBox.cs
- EmptyEnumerable.cs
- SizeConverter.cs
- DocumentGridPage.cs
- NativeObjectSecurity.cs
- DrawingAttributes.cs
- CancelEventArgs.cs
- GlyphRunDrawing.cs
- StrongNameUtility.cs
- RecognizeCompletedEventArgs.cs
- ErrorFormatter.cs
- MexHttpsBindingElement.cs
- MessageBox.cs
- RegistryPermission.cs
- ObjectMemberMapping.cs
- WSMessageEncoding.cs
- _SecureChannel.cs
- CellTreeNode.cs
- Math.cs
- DeferredElementTreeState.cs
- XmlHierarchicalDataSourceView.cs
- ListBoxItemAutomationPeer.cs
- FormsAuthenticationEventArgs.cs
- Pair.cs
- CollectionType.cs
- Types.cs
- NavigationProperty.cs
- SqlNotificationEventArgs.cs
- FixedTextContainer.cs
- WebPartMinimizeVerb.cs
- TextEffectResolver.cs
- RegexWorker.cs
- XmlLinkedNode.cs
- AsyncPostBackTrigger.cs
- RootBuilder.cs
- UrlUtility.cs
- CodeBlockBuilder.cs
- WebPartDeleteVerb.cs