Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SqlFormatter.cs
- Pkcs9Attribute.cs
- CompositeKey.cs
- SqlRemoveConstantOrderBy.cs
- UnsafeNativeMethods.cs
- UIElement3D.cs
- Matrix.cs
- ConstrainedDataObject.cs
- BinaryQueryOperator.cs
- TileBrush.cs
- MonitorWrapper.cs
- ChangePassword.cs
- SourceInterpreter.cs
- ConstructorExpr.cs
- GenericAuthenticationEventArgs.cs
- XmlNamespaceMapping.cs
- Int32RectValueSerializer.cs
- SpStreamWrapper.cs
- DataBindingExpressionBuilder.cs
- WebControlParameterProxy.cs
- WebPartCatalogAddVerb.cs
- PropertyGridView.cs
- NodeLabelEditEvent.cs
- XmlNodeList.cs
- WindowsPrincipal.cs
- BinaryWriter.cs
- BookmarkResumptionRecord.cs
- CultureInfoConverter.cs
- MdiWindowListItemConverter.cs
- XmlSchemaAnyAttribute.cs
- SqlTriggerAttribute.cs
- WebPartTransformerAttribute.cs
- MimeMultiPart.cs
- UIElementParaClient.cs
- TouchDevice.cs
- WindowsFormsHostPropertyMap.cs
- UrlPropertyAttribute.cs
- ParameterCollection.cs
- IISMapPath.cs
- LocalizableAttribute.cs
- InternalsVisibleToAttribute.cs
- NativeConfigurationLoader.cs
- NameValueConfigurationCollection.cs
- FloatUtil.cs
- MD5CryptoServiceProvider.cs
- LicenseContext.cs
- MsmqQueue.cs
- TableLayoutStyleCollection.cs
- _UncName.cs
- RemotingSurrogateSelector.cs
- ResourceReferenceKeyNotFoundException.cs
- RoutedEventConverter.cs
- UpdateTranslator.cs
- APCustomTypeDescriptor.cs
- FieldTemplateUserControl.cs
- ChameleonKey.cs
- CultureInfoConverter.cs
- OracleTimeSpan.cs
- InplaceBitmapMetadataWriter.cs
- PublisherIdentityPermission.cs
- SqlStream.cs
- FormattedText.cs
- ActiveDocumentEvent.cs
- StringFormat.cs
- InputLanguageCollection.cs
- AmbientProperties.cs
- WSFederationHttpBinding.cs
- SocketElement.cs
- BasePattern.cs
- DataGridViewCellStateChangedEventArgs.cs
- KeyValuePairs.cs
- DocumentOrderQuery.cs
- DSACryptoServiceProvider.cs
- MediaSystem.cs
- AddInProcess.cs
- WebPartDisplayModeEventArgs.cs
- ItemList.cs
- MimeTypePropertyAttribute.cs
- ProjectionPathSegment.cs
- XmlSchemaException.cs
- DeclaredTypeValidator.cs
- CfgParser.cs
- StyleHelper.cs
- SocketStream.cs
- SharedPerformanceCounter.cs
- CorePropertiesFilter.cs
- QuestionEventArgs.cs
- EnumConverter.cs
- ColorKeyFrameCollection.cs
- RtfToXamlLexer.cs
- NavigationProperty.cs
- ImageBrush.cs
- ClientSession.cs
- PersonalizationStateInfoCollection.cs
- HtmlHead.cs
- WindowHelperService.cs
- RepeatEnumerable.cs
- Paragraph.cs
- DataTemplateKey.cs
- WorkflowExecutor.cs