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
- RightsManagementPermission.cs
- XmlLoader.cs
- AbstractDataSvcMapFileLoader.cs
- RemoteWebConfigurationHostServer.cs
- SessionParameter.cs
- ExcCanonicalXml.cs
- SerTrace.cs
- CodeRegionDirective.cs
- NativeActivityMetadata.cs
- Control.cs
- EventLogger.cs
- _BasicClient.cs
- LockRecoveryTask.cs
- InfoCardMasterKey.cs
- TraceHandlerErrorFormatter.cs
- Select.cs
- DecoderExceptionFallback.cs
- InstanceCollisionException.cs
- RectAnimationBase.cs
- DocumentSequence.cs
- RuntimeResourceSet.cs
- SchemaAttDef.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- FontCollection.cs
- ContainerAction.cs
- AlphabeticalEnumConverter.cs
- FrameworkElement.cs
- rsa.cs
- GridItem.cs
- WebPartZone.cs
- TextBox.cs
- PolyLineSegment.cs
- HashSetDebugView.cs
- SqlBuilder.cs
- MLangCodePageEncoding.cs
- QilVisitor.cs
- FileNotFoundException.cs
- WebPartMenuStyle.cs
- CodeCatchClauseCollection.cs
- TextAnchor.cs
- PersonalizationStateInfoCollection.cs
- MaskPropertyEditor.cs
- InfiniteIntConverter.cs
- UrlPropertyAttribute.cs
- DataSourceDescriptorCollection.cs
- DocumentGridPage.cs
- Publisher.cs
- MiniCustomAttributeInfo.cs
- ObjectStateEntry.cs
- XmlNamedNodeMap.cs
- TextBox.cs
- AuthenticationManager.cs
- HttpWebRequest.cs
- ParenthesizePropertyNameAttribute.cs
- Win32.cs
- HttpApplication.cs
- SqlBuilder.cs
- MetafileHeader.cs
- ExpandoClass.cs
- XmlNotation.cs
- DeferredBinaryDeserializerExtension.cs
- ReflectionUtil.cs
- XmlNodeChangedEventArgs.cs
- DataTable.cs
- PeerNearMe.cs
- DataGridView.cs
- DataServiceExpressionVisitor.cs
- Site.cs
- ApplyTemplatesAction.cs
- InfoCardMetadataExchangeClient.cs
- BufferedGraphicsContext.cs
- parserscommon.cs
- Documentation.cs
- ServicePointManagerElement.cs
- PathNode.cs
- FlowLayoutPanel.cs
- AlphabeticalEnumConverter.cs
- WebPartUserCapability.cs
- DrawingCollection.cs
- GPPOINT.cs
- DbParameterCollection.cs
- ProfessionalColorTable.cs
- Label.cs
- WebResourceAttribute.cs
- SimpleWebHandlerParser.cs
- CodeConstructor.cs
- DesignTimeParseData.cs
- FilteredXmlReader.cs
- ComponentChangedEvent.cs
- Transform.cs
- SiteMapNodeCollection.cs
- ISessionStateStore.cs
- SingleQueryOperator.cs
- ObjectItemCollection.cs
- SqlMethodTransformer.cs
- XamlFilter.cs
- ResXBuildProvider.cs
- DataGridCell.cs
- Base64Encoding.cs
- WmlPanelAdapter.cs