Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / ErrorRuntimeConfig.cs / 1 / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextRangeBase.cs
- _AutoWebProxyScriptEngine.cs
- VerticalConnector.xaml.cs
- OpCellTreeNode.cs
- FrameDimension.cs
- DataGridRow.cs
- LongValidatorAttribute.cs
- OdbcParameter.cs
- _DomainName.cs
- InvalidateEvent.cs
- Column.cs
- PageThemeCodeDomTreeGenerator.cs
- SiteMapProvider.cs
- WbmpConverter.cs
- BadImageFormatException.cs
- NullRuntimeConfig.cs
- CryptoProvider.cs
- Button.cs
- BodyGlyph.cs
- ThreadPoolTaskScheduler.cs
- VScrollBar.cs
- ConnectionPointCookie.cs
- PropertyEmitter.cs
- MemberAccessException.cs
- UserControlFileEditor.cs
- TagMapInfo.cs
- SelectManyQueryOperator.cs
- BitmapDownload.cs
- SqlDuplicator.cs
- xmlNames.cs
- CoTaskMemHandle.cs
- BitmapSourceSafeMILHandle.cs
- FigureParagraph.cs
- XmlDataSource.cs
- Library.cs
- HtmlTableCell.cs
- HtmlMeta.cs
- ApplicationBuildProvider.cs
- SwitchElementsCollection.cs
- HttpCookie.cs
- EventlogProvider.cs
- SchemaCollectionCompiler.cs
- HttpApplicationFactory.cs
- CqlParser.cs
- CodeTypeDelegate.cs
- TextEditor.cs
- RelationshipDetailsCollection.cs
- WmlLinkAdapter.cs
- SchemaTableOptionalColumn.cs
- DesignerHelpers.cs
- RectConverter.cs
- CapabilitiesUse.cs
- MetaModel.cs
- SetState.cs
- ToolstripProfessionalRenderer.cs
- TableDetailsCollection.cs
- MembershipValidatePasswordEventArgs.cs
- Menu.cs
- TableColumn.cs
- ToolStripPanelRow.cs
- TypeSystem.cs
- UnknownBitmapEncoder.cs
- DisplayInformation.cs
- OleDbConnectionInternal.cs
- NetworkInformationException.cs
- Win32PrintDialog.cs
- ConsumerConnectionPointCollection.cs
- TableColumnCollection.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- SurrogateEncoder.cs
- ModelTreeEnumerator.cs
- BitVec.cs
- _SslStream.cs
- COM2Properties.cs
- PrimitiveSchema.cs
- ValidationError.cs
- Vector3DAnimationUsingKeyFrames.cs
- CrossSiteScriptingValidation.cs
- PhysicalFontFamily.cs
- SmtpNtlmAuthenticationModule.cs
- HttpVersion.cs
- ToolStripSeparator.cs
- InvalidComObjectException.cs
- ParseNumbers.cs
- UDPClient.cs
- WebControlsSection.cs
- ConnectionPointConverter.cs
- Models.cs
- DependencyObjectType.cs
- CfgRule.cs
- OutgoingWebRequestContext.cs
- ReferenceEqualityComparer.cs
- BulletedList.cs
- Error.cs
- FixUpCollection.cs
- DataAdapter.cs
- ToolStripItemImageRenderEventArgs.cs
- DataGridAutoFormat.cs
- StretchValidation.cs
- SafeRegistryKey.cs