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
- WinFormsSecurity.cs
- Socket.cs
- StorageComplexPropertyMapping.cs
- ISSmlParser.cs
- ResourceAssociationTypeEnd.cs
- XmlEncoding.cs
- QueryTreeBuilder.cs
- DocumentSequence.cs
- ColumnHeaderCollectionEditor.cs
- TypeNameConverter.cs
- DelegateArgumentReference.cs
- ObjectItemNoOpAssemblyLoader.cs
- AutomationElementIdentifiers.cs
- UnsafeNetInfoNativeMethods.cs
- WmfPlaceableFileHeader.cs
- HitTestFilterBehavior.cs
- UserNameSecurityTokenProvider.cs
- ClientProtocol.cs
- SmtpMail.cs
- NetSectionGroup.cs
- BitmapVisualManager.cs
- BuildTopDownAttribute.cs
- RoleManagerEventArgs.cs
- DynamicILGenerator.cs
- NamedObject.cs
- WebPartConnectionsConnectVerb.cs
- DataRecord.cs
- FormViewPageEventArgs.cs
- ReadOnlyDataSourceView.cs
- DbReferenceCollection.cs
- HtmlFormParameterReader.cs
- OracleInternalConnection.cs
- DataControlButton.cs
- DynamicResourceExtensionConverter.cs
- RotateTransform.cs
- ZipIOLocalFileHeader.cs
- TextContainerChangeEventArgs.cs
- IOThreadTimer.cs
- PersistenceTypeAttribute.cs
- Directory.cs
- SspiWrapper.cs
- Normalization.cs
- ConfigurationLockCollection.cs
- ImageCodecInfoPrivate.cs
- securestring.cs
- SolidColorBrush.cs
- RuntimeArgument.cs
- LogicalChannel.cs
- StringFunctions.cs
- Rfc2898DeriveBytes.cs
- AvTraceFormat.cs
- ToolStripTextBox.cs
- IndicFontClient.cs
- codemethodreferenceexpression.cs
- BaseContextMenu.cs
- QueryResult.cs
- InvalidFilterCriteriaException.cs
- DataObject.cs
- NameGenerator.cs
- IgnoreFlushAndCloseStream.cs
- EntityDataSourceWizardForm.cs
- MetadataCache.cs
- AuthorizationRuleCollection.cs
- DataPagerCommandEventArgs.cs
- InputLanguageSource.cs
- SpinLock.cs
- Range.cs
- SqlRecordBuffer.cs
- PartitionerStatic.cs
- StaticExtensionConverter.cs
- DataGridPagingPage.cs
- _emptywebproxy.cs
- FormViewActionList.cs
- DataServices.cs
- SqlClientWrapperSmiStream.cs
- Parsers.cs
- SignedPkcs7.cs
- WindowCollection.cs
- PointIndependentAnimationStorage.cs
- TextEvent.cs
- SignedPkcs7.cs
- pingexception.cs
- ColorTranslator.cs
- ReliabilityContractAttribute.cs
- CommandDesigner.cs
- HttpWriter.cs
- BamlWriter.cs
- UnicastIPAddressInformationCollection.cs
- MimePart.cs
- RecognizerBase.cs
- GridItemCollection.cs
- RSACryptoServiceProvider.cs
- IsolationInterop.cs
- TaiwanCalendar.cs
- ExeContext.cs
- StatusBarPanelClickEvent.cs
- SqlDataSourceEnumerator.cs
- ListBindingHelper.cs
- DataSourceViewSchemaConverter.cs
- GB18030Encoding.cs