Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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
- ControlType.cs
- TabControl.cs
- Visual3D.cs
- RemoteWebConfigurationHostStream.cs
- MemoryPressure.cs
- FileLevelControlBuilderAttribute.cs
- RpcResponse.cs
- EntityContainerAssociationSetEnd.cs
- PartialList.cs
- CheckoutException.cs
- XmlDataFileEditor.cs
- TargetConverter.cs
- ZipIOExtraFieldPaddingElement.cs
- ListSourceHelper.cs
- IxmlLineInfo.cs
- TagPrefixCollection.cs
- OrderedEnumerableRowCollection.cs
- LogEntrySerializer.cs
- StatusBarPanel.cs
- MaskedTextBox.cs
- ConfigurationStrings.cs
- DynamicResourceExtension.cs
- ConfigurationFileMap.cs
- XmlAttribute.cs
- XmlSchemaRedefine.cs
- AllMembershipCondition.cs
- QilList.cs
- _BaseOverlappedAsyncResult.cs
- StreamingContext.cs
- Queue.cs
- XmlNodeChangedEventArgs.cs
- DataSourceHelper.cs
- DocumentPage.cs
- HashMembershipCondition.cs
- NotSupportedException.cs
- OdbcConnectionStringbuilder.cs
- IisTraceListener.cs
- SharedHttpTransportManager.cs
- GlyphElement.cs
- AsymmetricAlgorithm.cs
- MbpInfo.cs
- CompositeControl.cs
- OneToOneMappingSerializer.cs
- RoutedUICommand.cs
- OpCodes.cs
- MexNamedPipeBindingElement.cs
- URIFormatException.cs
- ItemChangedEventArgs.cs
- SvcMapFileSerializer.cs
- PreDigestedSignedInfo.cs
- DocumentSchemaValidator.cs
- ContextMenuAutomationPeer.cs
- control.ime.cs
- TheQuery.cs
- RouteParametersHelper.cs
- InfocardExtendedInformationCollection.cs
- CachedTypeface.cs
- CompositeActivityCodeGenerator.cs
- StrokeCollectionDefaultValueFactory.cs
- InfoCardKeyedHashAlgorithm.cs
- RuntimeArgumentHandle.cs
- ResolveMatches11.cs
- CryptoKeySecurity.cs
- HttpCapabilitiesEvaluator.cs
- ListItemParagraph.cs
- ProviderException.cs
- StylusPointProperty.cs
- ConfigurationSectionGroup.cs
- AgileSafeNativeMemoryHandle.cs
- TextFormatterContext.cs
- WebPartDisplayModeEventArgs.cs
- SQLInt16Storage.cs
- ApplicationTrust.cs
- WindowsIPAddress.cs
- DateTimeFormatInfoScanner.cs
- Int16AnimationBase.cs
- SamlConstants.cs
- GlyphRunDrawing.cs
- GuidConverter.cs
- SQLBoolean.cs
- ManagementEventArgs.cs
- IntegerValidatorAttribute.cs
- Int64KeyFrameCollection.cs
- TypeBuilder.cs
- DynamicObject.cs
- XamlClipboardData.cs
- FileLoadException.cs
- UIElementIsland.cs
- TemplateBindingExpressionConverter.cs
- DictionaryMarkupSerializer.cs
- UnsafeNativeMethods.cs
- GraphicsContainer.cs
- StringKeyFrameCollection.cs
- MD5CryptoServiceProvider.cs
- SqlConnectionPoolGroupProviderInfo.cs
- EditorPartChrome.cs
- PropertyChangingEventArgs.cs
- EncryptedReference.cs
- CodeTypeDeclaration.cs
- SqlBooleanMismatchVisitor.cs