Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpResponse.cs
- COMException.cs
- ReflectionPermission.cs
- ContractInstanceProvider.cs
- ConfigXmlReader.cs
- TableItemPatternIdentifiers.cs
- AllowedAudienceUriElement.cs
- InstallerTypeAttribute.cs
- IgnoreSectionHandler.cs
- RegisteredDisposeScript.cs
- ShapingEngine.cs
- TreeNodeCollectionEditorDialog.cs
- StringUtil.cs
- MessageEncodingBindingElementImporter.cs
- AutomationPatternInfo.cs
- DataObject.cs
- ExpressionsCollectionEditor.cs
- DashStyle.cs
- SelectingProviderEventArgs.cs
- InlineCategoriesDocument.cs
- OrderingInfo.cs
- CodeStatementCollection.cs
- DropDownList.cs
- shaperfactory.cs
- ApplicationSecurityInfo.cs
- PartialClassGenerationTaskInternal.cs
- SecurityKeyIdentifierClause.cs
- GridViewCellAutomationPeer.cs
- RawStylusActions.cs
- PrimitiveXmlSerializers.cs
- ThreadStartException.cs
- ComPlusInstanceProvider.cs
- UriSection.cs
- HtmlInputReset.cs
- DesignerActionItem.cs
- CommandDevice.cs
- XMLSchema.cs
- RunInstallerAttribute.cs
- AutomationElementCollection.cs
- ExceptQueryOperator.cs
- URL.cs
- TemplateBuilder.cs
- RegexRunner.cs
- ProxyWebPartConnectionCollection.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- OracleConnectionStringBuilder.cs
- AppDomainFactory.cs
- DynamicResourceExtension.cs
- MsdtcClusterUtils.cs
- Int32Rect.cs
- RecordsAffectedEventArgs.cs
- HashStream.cs
- EnumerableCollectionView.cs
- InheritanceContextHelper.cs
- Win32.cs
- Typography.cs
- EntityPropertyMappingAttribute.cs
- TypedReference.cs
- SizeFConverter.cs
- StringFunctions.cs
- ConvertersCollection.cs
- LinqDataView.cs
- LinkUtilities.cs
- SqlDataSourceQueryEditor.cs
- LicenseException.cs
- TraceContextRecord.cs
- StyleBamlRecordReader.cs
- QuaternionRotation3D.cs
- TrackingDataItemValue.cs
- TransformerInfoCollection.cs
- ping.cs
- NCryptSafeHandles.cs
- ConfigurationCollectionAttribute.cs
- RadioButtonBaseAdapter.cs
- FormsIdentity.cs
- ValidationSummary.cs
- Accessible.cs
- PathFigure.cs
- RequestBringIntoViewEventArgs.cs
- RectAnimationBase.cs
- UniqueEventHelper.cs
- AppSecurityManager.cs
- HandleRef.cs
- COAUTHIDENTITY.cs
- x509utils.cs
- MatrixAnimationBase.cs
- GradientStopCollection.cs
- PrintEvent.cs
- PolyBezierSegment.cs
- SqlUserDefinedTypeAttribute.cs
- DropSource.cs
- OracleTransaction.cs
- PropertyToken.cs
- FullTextBreakpoint.cs
- ObjectPersistData.cs
- HashCodeCombiner.cs
- DataTrigger.cs
- InvalidDataContractException.cs
- AdjustableArrowCap.cs
- StateDesigner.CommentLayoutGlyph.cs