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
- DynamicMethod.cs
- NativeMethods.cs
- ActivityStatusChangeEventArgs.cs
- Int16Animation.cs
- HttpErrorTraceRecord.cs
- TypeSource.cs
- BasicExpressionVisitor.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- AsyncPostBackErrorEventArgs.cs
- TimeoutValidationAttribute.cs
- SecurityPermission.cs
- DbConnectionPoolOptions.cs
- EntityStoreSchemaFilterEntry.cs
- ReadOnlyHierarchicalDataSource.cs
- DataSourceExpressionCollection.cs
- TemplateNameScope.cs
- WindowsGraphics.cs
- RepeaterItemEventArgs.cs
- PreservationFileReader.cs
- MetadataArtifactLoaderCompositeResource.cs
- WriteTimeStream.cs
- Tracer.cs
- AuthenticationConfig.cs
- TextElementCollectionHelper.cs
- DataControlImageButton.cs
- EncoderParameters.cs
- XamlValidatingReader.cs
- DataRow.cs
- ConnectionStringsExpressionEditor.cs
- Point3DConverter.cs
- HttpCacheParams.cs
- SectionXmlInfo.cs
- FileRecordSequenceCompletedAsyncResult.cs
- GuidelineSet.cs
- ApplicationDirectoryMembershipCondition.cs
- MarkupWriter.cs
- ColumnHeaderConverter.cs
- InputLangChangeRequestEvent.cs
- ObjectQueryProvider.cs
- ChannelOptions.cs
- Pool.cs
- AsymmetricKeyExchangeDeformatter.cs
- RewritingPass.cs
- Variable.cs
- Soap.cs
- SettingsSavedEventArgs.cs
- PropertySegmentSerializer.cs
- AssemblyAssociatedContentFileAttribute.cs
- SizeAnimation.cs
- XmlSchemaGroup.cs
- TrustManagerPromptUI.cs
- TempEnvironment.cs
- InfoCardTrace.cs
- GeneratedContractType.cs
- DependencyObjectProvider.cs
- HandlerFactoryWrapper.cs
- SchemaImporterExtension.cs
- StyleXamlTreeBuilder.cs
- RowVisual.cs
- UInt64Converter.cs
- Deserializer.cs
- ToolBarOverflowPanel.cs
- OdbcErrorCollection.cs
- XPathAxisIterator.cs
- DataServiceExpressionVisitor.cs
- ReferentialConstraint.cs
- CodeMemberMethod.cs
- SqlLiftWhereClauses.cs
- SettingsBindableAttribute.cs
- ApplicationInfo.cs
- TcpServerChannel.cs
- _LocalDataStoreMgr.cs
- Image.cs
- RadioButtonPopupAdapter.cs
- ThaiBuddhistCalendar.cs
- OdbcDataReader.cs
- QilSortKey.cs
- SqlBulkCopyColumnMappingCollection.cs
- DbgUtil.cs
- AssertUtility.cs
- ContentDisposition.cs
- XmlnsCache.cs
- RenameRuleObjectDialog.Designer.cs
- ValuePatternIdentifiers.cs
- ToolStripDropDownClosedEventArgs.cs
- ProtocolImporter.cs
- FeatureManager.cs
- WebPartCollection.cs
- ConnectionPoolManager.cs
- MemoryStream.cs
- Array.cs
- TransformerConfigurationWizardBase.cs
- Module.cs
- Transactions.cs
- XNodeValidator.cs
- NameValueFileSectionHandler.cs
- AttributeQuery.cs
- GridSplitterAutomationPeer.cs
- TabRenderer.cs
- PerfCounterSection.cs