Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FreezableDefaultValueFactory.cs
- TextSyndicationContent.cs
- UniformGrid.cs
- SharedPersonalizationStateInfo.cs
- DoubleLink.cs
- Membership.cs
- FixedTextView.cs
- Interlocked.cs
- TextRenderer.cs
- Point3D.cs
- OleDbRowUpdatingEvent.cs
- TextServicesCompartment.cs
- ActivityInstanceReference.cs
- ProfileGroupSettingsCollection.cs
- XmlSchemaValidator.cs
- TogglePatternIdentifiers.cs
- EdmError.cs
- InternalPolicyElement.cs
- ValidatorCompatibilityHelper.cs
- DecimalFormatter.cs
- _AuthenticationState.cs
- TemplateLookupAction.cs
- WindowsComboBox.cs
- ProfileEventArgs.cs
- AutomationAttributeInfo.cs
- ToolStripGrip.cs
- Preprocessor.cs
- GridViewCommandEventArgs.cs
- TransformGroup.cs
- AddInStore.cs
- OleDbException.cs
- SqlCommandBuilder.cs
- ServiceX509SecurityTokenProvider.cs
- ResourcePermissionBaseEntry.cs
- ThemeInfoAttribute.cs
- ConnectionPoolManager.cs
- SafeSecurityHelper.cs
- SQLRoleProvider.cs
- ConfigurationSettings.cs
- RouteUrlExpressionBuilder.cs
- TextSelectionHelper.cs
- SqlXml.cs
- ButtonColumn.cs
- DetailsViewPagerRow.cs
- CryptoApi.cs
- AuthenticationConfig.cs
- InputLangChangeRequestEvent.cs
- TableLayoutSettings.cs
- SharedPerformanceCounter.cs
- XmlElementCollection.cs
- HttpListenerElement.cs
- ViewEvent.cs
- HttpWriter.cs
- ResourceReader.cs
- ArraySegment.cs
- MenuItemBindingCollection.cs
- UserPreferenceChangedEventArgs.cs
- SystemNetworkInterface.cs
- FunctionQuery.cs
- Symbol.cs
- EncryptedPackageFilter.cs
- handlecollector.cs
- Oci.cs
- Underline.cs
- Transform3DGroup.cs
- SystemInformation.cs
- Rule.cs
- TraceEventCache.cs
- ReferencedCollectionType.cs
- ProxyBuilder.cs
- Claim.cs
- AppLevelCompilationSectionCache.cs
- HopperCache.cs
- PopupRootAutomationPeer.cs
- Win32MouseDevice.cs
- TreeNodeStyle.cs
- Exceptions.cs
- SiteIdentityPermission.cs
- _DisconnectOverlappedAsyncResult.cs
- XmlDocumentType.cs
- TrustManager.cs
- CardSpacePolicyElement.cs
- ProfileServiceManager.cs
- SoapObjectInfo.cs
- OleDbRowUpdatedEvent.cs
- CellParaClient.cs
- SafeRightsManagementQueryHandle.cs
- ConnectionPointCookie.cs
- ServiceMetadataContractBehavior.cs
- ListBindableAttribute.cs
- CheckableControlBaseAdapter.cs
- PersonalizationStateInfoCollection.cs
- DataTrigger.cs
- DataControlField.cs
- Char.cs
- InheritablePropertyChangeInfo.cs
- Profiler.cs
- dataobject.cs
- OdbcDataAdapter.cs
- MulticastOption.cs