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
- DictionaryEntry.cs
- precedingsibling.cs
- HostedHttpRequestAsyncResult.cs
- ComboBoxRenderer.cs
- ControlCommandSet.cs
- controlskin.cs
- Crypto.cs
- StringWriter.cs
- CryptoConfig.cs
- ZipIOLocalFileHeader.cs
- BuiltInExpr.cs
- DispatcherHooks.cs
- XhtmlBasicPanelAdapter.cs
- AuthorizationPolicyTypeElement.cs
- OrderedEnumerableRowCollection.cs
- AnimationLayer.cs
- IApplicationTrustManager.cs
- AppSettingsSection.cs
- ExpressionBuilder.cs
- DataServiceConfiguration.cs
- ByteStreamGeometryContext.cs
- MetadataItemCollectionFactory.cs
- ToolboxBitmapAttribute.cs
- ThemeInfoAttribute.cs
- ReadOnlyTernaryTree.cs
- SQLInt16.cs
- EdmMember.cs
- DecoderFallback.cs
- PingOptions.cs
- SegmentTree.cs
- SingleSelectRootGridEntry.cs
- HtmlGenericControl.cs
- GridPattern.cs
- validationstate.cs
- MetaDataInfo.cs
- NodeLabelEditEvent.cs
- HttpWebResponse.cs
- EventDescriptor.cs
- SqlError.cs
- MembershipValidatePasswordEventArgs.cs
- ImpersonationContext.cs
- NumberSubstitution.cs
- ReaderOutput.cs
- ViewCellSlot.cs
- X509Logo.cs
- ChangePassword.cs
- Aggregates.cs
- contentDescriptor.cs
- StyleBamlTreeBuilder.cs
- InternalConfigEventArgs.cs
- DateTimeHelper.cs
- CommunicationException.cs
- QuadTree.cs
- ResourceDefaultValueAttribute.cs
- ConfigXmlWhitespace.cs
- HtmlInputFile.cs
- CssStyleCollection.cs
- ProgressBarAutomationPeer.cs
- Pair.cs
- WindowsAltTab.cs
- ComponentChangingEvent.cs
- StringToken.cs
- DockAndAnchorLayout.cs
- CheckPair.cs
- StringArrayConverter.cs
- MergeLocalizationDirectives.cs
- ProcessModuleCollection.cs
- AnnotationObservableCollection.cs
- Attributes.cs
- InvalidProgramException.cs
- DesignerListAdapter.cs
- ProcessRequestArgs.cs
- FlowDocumentFormatter.cs
- AlphaSortedEnumConverter.cs
- SystemEvents.cs
- CngAlgorithm.cs
- OraclePermissionAttribute.cs
- HttpStreams.cs
- MenuItem.cs
- CompositeFontFamily.cs
- CustomAttribute.cs
- Size3DValueSerializer.cs
- XamlTypeMapper.cs
- WebResourceAttribute.cs
- NativeWindow.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- bidPrivateBase.cs
- StoreAnnotationsMap.cs
- WebPartConnectionsDisconnectVerb.cs
- ListViewCancelEventArgs.cs
- WindowsToolbarAsMenu.cs
- ProviderUtil.cs
- IsolatedStoragePermission.cs
- ImmutableObjectAttribute.cs
- MissingFieldException.cs
- _HelperAsyncResults.cs
- DataSourceIDConverter.cs
- URL.cs
- InputLanguageManager.cs
- PathSegmentCollection.cs