Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- InvalidEnumArgumentException.cs
- WinHttpWebProxyFinder.cs
- MenuItem.cs
- UnsafeNativeMethods.cs
- PassportAuthenticationModule.cs
- _HTTPDateParse.cs
- ApplicationSettingsBase.cs
- ItemCheckedEvent.cs
- StringUtil.cs
- ConfigXmlText.cs
- EntityDesignerDataSourceView.cs
- MissingFieldException.cs
- WindowsButton.cs
- TypedRowGenerator.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- LineGeometry.cs
- DataTemplateSelector.cs
- StylusCaptureWithinProperty.cs
- iisPickupDirectory.cs
- TraceSwitch.cs
- _RequestCacheProtocol.cs
- CmsUtils.cs
- GeometryHitTestResult.cs
- NamespaceEmitter.cs
- Buffer.cs
- WindowsStatusBar.cs
- LoginView.cs
- ExpressionBuilder.cs
- SamlSubjectStatement.cs
- OleCmdHelper.cs
- ConditionCollection.cs
- MetadataCacheItem.cs
- Splitter.cs
- IIS7WorkerRequest.cs
- DictionaryChange.cs
- DateTime.cs
- StrokeCollection.cs
- RowToParametersTransformer.cs
- GeneralTransform3DGroup.cs
- Error.cs
- ChangeTracker.cs
- Msec.cs
- SocketException.cs
- StatusBarItemAutomationPeer.cs
- EntitySetBase.cs
- _SafeNetHandles.cs
- NamespaceMapping.cs
- SuppressIldasmAttribute.cs
- SqlDependencyUtils.cs
- PnrpPermission.cs
- SingletonConnectionReader.cs
- ListView.cs
- PrePostDescendentsWalker.cs
- StreamHelper.cs
- _LoggingObject.cs
- SequentialUshortCollection.cs
- TemplateControlParser.cs
- CompoundFileStreamReference.cs
- FormatConvertedBitmap.cs
- TreeNodeCollection.cs
- TargetPerspective.cs
- _AutoWebProxyScriptEngine.cs
- ResXResourceWriter.cs
- SocketSettings.cs
- adornercollection.cs
- ActivityExecutorSurrogate.cs
- FormViewDesigner.cs
- Win32SafeHandles.cs
- DataControlFieldCollection.cs
- IOException.cs
- xml.cs
- DelegateArgumentValue.cs
- Fx.cs
- SEHException.cs
- IdentityReference.cs
- TrackingProfile.cs
- RoleManagerEventArgs.cs
- AdRotatorDesigner.cs
- RewritingPass.cs
- MenuBase.cs
- Variant.cs
- Int32Storage.cs
- Math.cs
- MetadataItemSerializer.cs
- StrokeNodeOperations.cs
- XmlNamedNodeMap.cs
- WebConfigurationHostFileChange.cs
- Int64AnimationBase.cs
- DataGridViewRow.cs
- PolyLineSegment.cs
- ProfileInfo.cs
- ExitEventArgs.cs
- XmlILModule.cs
- CollectionViewGroup.cs
- InfoCardCryptoHelper.cs
- CurrencyWrapper.cs
- AppearanceEditorPart.cs
- BinaryParser.cs
- CodeMemberProperty.cs
- TreeSet.cs