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
- ObjectQueryProvider.cs
- ConstraintStruct.cs
- ToolboxDataAttribute.cs
- SimplePropertyEntry.cs
- CatalogPartDesigner.cs
- PropertyCollection.cs
- EventLogSession.cs
- AutomationEventArgs.cs
- DropDownButton.cs
- DataStreams.cs
- Funcletizer.cs
- ObjectKeyFrameCollection.cs
- StretchValidation.cs
- EntityContainerEmitter.cs
- DataTableTypeConverter.cs
- ProxyWebPartConnectionCollection.cs
- SecurityHeader.cs
- ParsedRoute.cs
- RelatedCurrencyManager.cs
- SafeSecurityHelper.cs
- ProviderConnectionPoint.cs
- TokenBasedSet.cs
- BrowserDefinitionCollection.cs
- DynamicDataResources.Designer.cs
- XmlBufferReader.cs
- DatagridviewDisplayedBandsData.cs
- TabControl.cs
- HostingPreferredMapPath.cs
- SqlBuffer.cs
- SpAudioStreamWrapper.cs
- DialogDivider.cs
- OleDbConnectionInternal.cs
- GlobalProxySelection.cs
- RotationValidation.cs
- ColorInterpolationModeValidation.cs
- AnimatedTypeHelpers.cs
- SplineKeyFrames.cs
- nulltextcontainer.cs
- QuerySelectOp.cs
- TemplateXamlParser.cs
- HttpCapabilitiesEvaluator.cs
- GenericsInstances.cs
- UserControlCodeDomTreeGenerator.cs
- RequestQueryParser.cs
- OpenTypeCommon.cs
- ParallelTimeline.cs
- TopClause.cs
- LocalizableAttribute.cs
- TileModeValidation.cs
- LZCodec.cs
- UriWriter.cs
- DecodeHelper.cs
- CheckBoxBaseAdapter.cs
- AlphaSortedEnumConverter.cs
- TraceRecords.cs
- XmlEventCache.cs
- GridViewCancelEditEventArgs.cs
- SQLMembershipProvider.cs
- DesignerAdapterAttribute.cs
- DataGridDetailsPresenter.cs
- SystemNetworkInterface.cs
- UrlPath.cs
- DataGridViewLinkColumn.cs
- TraceRecord.cs
- SystemThemeKey.cs
- DbRetry.cs
- MethodToken.cs
- HttpResponseInternalWrapper.cs
- ProtocolsConfigurationEntry.cs
- ColumnMapTranslator.cs
- ZoomPercentageConverter.cs
- Pen.cs
- LinkUtilities.cs
- ScrollableControlDesigner.cs
- ScopelessEnumAttribute.cs
- UIHelper.cs
- SystemUnicastIPAddressInformation.cs
- CommentEmitter.cs
- DocumentSchemaValidator.cs
- PropertyItem.cs
- DefaultValueTypeConverter.cs
- MLangCodePageEncoding.cs
- ToolStripLabel.cs
- TreeViewImageIndexConverter.cs
- BackStopAuthenticationModule.cs
- TransformedBitmap.cs
- PrimitiveXmlSerializers.cs
- ImageCodecInfoPrivate.cs
- CollectionsUtil.cs
- PKCS1MaskGenerationMethod.cs
- ClientTargetSection.cs
- BackgroundWorker.cs
- ValuePattern.cs
- PropertyMapper.cs
- GotoExpression.cs
- LowerCaseStringConverter.cs
- TextEditorThreadLocalStore.cs
- Dictionary.cs
- DeviceContext2.cs
- TrackingProfileDeserializationException.cs