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
- ToolStripContentPanel.cs
- GeneratedView.cs
- FormsAuthenticationCredentials.cs
- EmbeddedObject.cs
- QilFactory.cs
- BuilderElements.cs
- AsyncMethodInvoker.cs
- OleDbError.cs
- ToolStripSplitStackLayout.cs
- Rijndael.cs
- CallSiteHelpers.cs
- ToolStripItemRenderEventArgs.cs
- BaseProcessor.cs
- PageThemeCodeDomTreeGenerator.cs
- TreeViewItem.cs
- DeclaredTypeElementCollection.cs
- GenericTypeParameterBuilder.cs
- TextSegment.cs
- XmlUnspecifiedAttribute.cs
- assertwrapper.cs
- LocalizedNameDescriptionPair.cs
- Parsers.cs
- ObjectQueryState.cs
- FormViewUpdateEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- TimeoutException.cs
- CatalogUtil.cs
- DataGridViewTextBoxCell.cs
- DrawingContextDrawingContextWalker.cs
- ContainerParaClient.cs
- DragDeltaEventArgs.cs
- SchemaElementLookUpTable.cs
- WebRequestModulesSection.cs
- SoapSchemaExporter.cs
- LayoutTable.cs
- NavigationProgressEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- EncoderNLS.cs
- DataObjectPastingEventArgs.cs
- QuaternionKeyFrameCollection.cs
- WeakEventTable.cs
- FilterException.cs
- _ListenerRequestStream.cs
- SqlConnectionHelper.cs
- BitmapEffectGroup.cs
- HandleRef.cs
- Encoder.cs
- DiagnosticSection.cs
- oledbmetadatacolumnnames.cs
- PerformanceCounterManager.cs
- WebControlsSection.cs
- XamlRtfConverter.cs
- SystemIPGlobalProperties.cs
- WindowsHyperlink.cs
- MailAddressCollection.cs
- MetadataUtilsSmi.cs
- ControlOperationInvoker.cs
- TPLETWProvider.cs
- CharacterBuffer.cs
- Message.cs
- Keywords.cs
- RuntimeUtils.cs
- RectAnimationUsingKeyFrames.cs
- LayoutUtils.cs
- PackageDigitalSignatureManager.cs
- RecognitionResult.cs
- KeyboardNavigation.cs
- WebPartCancelEventArgs.cs
- MdiWindowListStrip.cs
- ControlParameter.cs
- BooleanKeyFrameCollection.cs
- altserialization.cs
- TransactionScope.cs
- DescriptionAttribute.cs
- HandlerFactoryWrapper.cs
- WebServiceBindingAttribute.cs
- CodeParameterDeclarationExpression.cs
- XsltArgumentList.cs
- UniqueConstraint.cs
- ConditionalWeakTable.cs
- FragmentQueryKB.cs
- WebPartConnectionsConfigureVerb.cs
- InvalidChannelBindingException.cs
- ClientApiGenerator.cs
- XmlnsDictionary.cs
- PrintPreviewDialog.cs
- MultiView.cs
- UserNameSecurityTokenAuthenticator.cs
- DataPagerFieldCollection.cs
- SharedStatics.cs
- ClientTargetSection.cs
- HtmlObjectListAdapter.cs
- WindowsRichEditRange.cs
- D3DImage.cs
- ValidationErrorEventArgs.cs
- EncryptedPackage.cs
- FtpRequestCacheValidator.cs
- CachedFontFace.cs
- State.cs
- MachineSettingsSection.cs