Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RuntimeConfigLKG.cs
- StyleXamlParser.cs
- TitleStyle.cs
- LineBreakRecord.cs
- SqlDataReaderSmi.cs
- RelatedImageListAttribute.cs
- BasicHttpMessageSecurityElement.cs
- GeneralTransformGroup.cs
- Constants.cs
- HandleCollector.cs
- Mapping.cs
- SiteMapNode.cs
- TextRunCache.cs
- ValuePattern.cs
- ObjectQueryExecutionPlan.cs
- Misc.cs
- PersistChildrenAttribute.cs
- DerivedKeySecurityTokenStub.cs
- PipeStream.cs
- CompositionAdorner.cs
- ReadOnlyPermissionSet.cs
- BamlLocalizabilityResolver.cs
- AutoGeneratedFieldProperties.cs
- ConfigurationValidatorAttribute.cs
- HttpDebugHandler.cs
- WebConfigurationManager.cs
- TemplateEditingFrame.cs
- PagedDataSource.cs
- listviewsubitemcollectioneditor.cs
- ItemType.cs
- sitestring.cs
- ListViewGroupConverter.cs
- SeverityFilter.cs
- SqlStream.cs
- ExpressionBuilderCollection.cs
- CommandDevice.cs
- Themes.cs
- NativeWindow.cs
- DataProtection.cs
- ColorIndependentAnimationStorage.cs
- StrokeFIndices.cs
- ValidatedControlConverter.cs
- KeyEvent.cs
- Mappings.cs
- XPathNodePointer.cs
- ZipFileInfoCollection.cs
- TraceFilter.cs
- CalendarAutoFormatDialog.cs
- ServiceContractGenerationContext.cs
- RijndaelManaged.cs
- XmlDataContract.cs
- OperationInvokerBehavior.cs
- PreviewPageInfo.cs
- PixelShader.cs
- HttpConfigurationContext.cs
- StandardOleMarshalObject.cs
- MeshGeometry3D.cs
- followingquery.cs
- TemplateKey.cs
- Matrix.cs
- DependencyObjectType.cs
- Point3DConverter.cs
- BoundColumn.cs
- SafeArrayRankMismatchException.cs
- RowCache.cs
- Behavior.cs
- FatalException.cs
- ListViewUpdatedEventArgs.cs
- SurrogateEncoder.cs
- OracleRowUpdatingEventArgs.cs
- OleStrCAMarshaler.cs
- Substitution.cs
- SecUtil.cs
- RenderTargetBitmap.cs
- ProxyRpc.cs
- HandleCollector.cs
- DelegatingTypeDescriptionProvider.cs
- DeploymentSection.cs
- TabControlCancelEvent.cs
- ContainerUtilities.cs
- StreamAsIStream.cs
- DoubleLink.cs
- MembershipValidatePasswordEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- RuleSetReference.cs
- SamlDoNotCacheCondition.cs
- XmlSortKey.cs
- TouchFrameEventArgs.cs
- Int32.cs
- HealthMonitoringSectionHelper.cs
- AppDomainProtocolHandler.cs
- EntityWrapper.cs
- AppDomainGrammarProxy.cs
- DataSet.cs
- LogExtent.cs
- CompilerLocalReference.cs
- DynamicMetaObjectBinder.cs
- ISAPIRuntime.cs
- LicFileLicenseProvider.cs
- ContainerActivationHelper.cs