Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / ErrorRuntimeConfig.cs / 1305376 / 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
- BindingExpressionBase.cs
- Size3D.cs
- Win32Exception.cs
- QuaternionRotation3D.cs
- ComponentCommands.cs
- ActivationServices.cs
- WmlFormAdapter.cs
- GridItemCollection.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- SqlDependencyListener.cs
- IndexedGlyphRun.cs
- FullTextState.cs
- XPathException.cs
- ConfigurationSectionHelper.cs
- CatalogPartCollection.cs
- PipelineModuleStepContainer.cs
- WebPartExportVerb.cs
- TextMetrics.cs
- WorkflowMarkupSerializer.cs
- Solver.cs
- TextEncodedRawTextWriter.cs
- ObjectDataProvider.cs
- _RequestCacheProtocol.cs
- FormatSettings.cs
- MissingMemberException.cs
- TriggerCollection.cs
- DataBoundControlAdapter.cs
- FormViewModeEventArgs.cs
- Size.cs
- TrustManagerPromptUI.cs
- MessageSecurityException.cs
- CombinedGeometry.cs
- ProviderIncompatibleException.cs
- ToolStripLocationCancelEventArgs.cs
- FormatSettings.cs
- ExecutedRoutedEventArgs.cs
- ShapingWorkspace.cs
- InputLangChangeRequestEvent.cs
- MenuItem.cs
- ReversePositionQuery.cs
- ExpressionUtilities.cs
- BitSet.cs
- Activator.cs
- PageContentAsyncResult.cs
- EpmSourceTree.cs
- TreeViewItem.cs
- BaseResourcesBuildProvider.cs
- _ConnectionGroup.cs
- ProviderMetadataCachedInformation.cs
- FontNamesConverter.cs
- AppSettingsExpressionBuilder.cs
- Empty.cs
- HttpHeaderCollection.cs
- RowSpanVector.cs
- ClaimComparer.cs
- TripleDESCryptoServiceProvider.cs
- Polyline.cs
- FtpCachePolicyElement.cs
- DataGridViewCellValidatingEventArgs.cs
- GroupBoxDesigner.cs
- SizeConverter.cs
- BaseDataList.cs
- RuleSetCollection.cs
- GridViewSortEventArgs.cs
- MemberHolder.cs
- Panel.cs
- Translator.cs
- ManualResetEvent.cs
- DebuggerAttributes.cs
- TextRenderer.cs
- ObjectDataProvider.cs
- HttpValueCollection.cs
- DynamicResourceExtension.cs
- WinInet.cs
- CounterCreationDataCollection.cs
- QueueProcessor.cs
- ProjectionCamera.cs
- InfoCardTrace.cs
- Span.cs
- RuleSetDialog.Designer.cs
- XmlLoader.cs
- Token.cs
- DateTimeParse.cs
- HttpContext.cs
- Compiler.cs
- FragmentQuery.cs
- UserMapPath.cs
- XPathParser.cs
- MessageBox.cs
- Route.cs
- ListSortDescription.cs
- DownloadProgressEventArgs.cs
- ToolStripDropDownClosedEventArgs.cs
- ColumnPropertiesGroup.cs
- ReadWriteObjectLock.cs
- DefaultBinder.cs
- PasswordRecovery.cs
- ListenerElementsCollection.cs
- MiniCustomAttributeInfo.cs
- _NetworkingPerfCounters.cs