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
- String.cs
- GcHandle.cs
- GeneratedContractType.cs
- HtmlMeta.cs
- TraceSwitch.cs
- XmlTypeMapping.cs
- GACMembershipCondition.cs
- MarkedHighlightComponent.cs
- _HeaderInfo.cs
- iisPickupDirectory.cs
- OuterGlowBitmapEffect.cs
- ApplicationFileParser.cs
- WebCategoryAttribute.cs
- ContextMenu.cs
- StrongNamePublicKeyBlob.cs
- CodeGroup.cs
- MultipartIdentifier.cs
- NamespaceEmitter.cs
- RegisteredHiddenField.cs
- CodePageEncoding.cs
- NativeObjectSecurity.cs
- SymbolEqualComparer.cs
- PreviewKeyDownEventArgs.cs
- FixedTextSelectionProcessor.cs
- Composition.cs
- SpeakCompletedEventArgs.cs
- DecimalConverter.cs
- OperationAbortedException.cs
- MimeTypeMapper.cs
- XmlEntityReference.cs
- FamilyCollection.cs
- AppDomain.cs
- WebPartMovingEventArgs.cs
- SwitchLevelAttribute.cs
- ProvidePropertyAttribute.cs
- XmlIlGenerator.cs
- InvalidProgramException.cs
- BitmapEffectDrawingContent.cs
- WebRequest.cs
- DrawingDrawingContext.cs
- TextSelectionHelper.cs
- DesignerCapabilities.cs
- OdbcErrorCollection.cs
- XmlDocumentFragment.cs
- KnownAssembliesSet.cs
- VoiceSynthesis.cs
- XsltException.cs
- Converter.cs
- SecurityRuntime.cs
- PaperSize.cs
- SqlAggregateChecker.cs
- BookmarkEventArgs.cs
- DesignerForm.cs
- XPathQueryGenerator.cs
- XmlElement.cs
- FilterableAttribute.cs
- OLEDB_Enum.cs
- CharKeyFrameCollection.cs
- MappedMetaModel.cs
- FilterFactory.cs
- ProfileParameter.cs
- ValueQuery.cs
- ClientBuildManager.cs
- BaseValidator.cs
- TextBox.cs
- ToolStripHighContrastRenderer.cs
- HtmlTableCellCollection.cs
- OdbcConnectionFactory.cs
- UIElement.cs
- ProtectedConfigurationSection.cs
- X509Chain.cs
- Operand.cs
- OpenFileDialog.cs
- SpotLight.cs
- X509CertificateInitiatorClientCredential.cs
- sqlnorm.cs
- DataContractSerializer.cs
- SHA512Managed.cs
- WorkflowOperationInvoker.cs
- CultureSpecificStringDictionary.cs
- SmiEventSink.cs
- ConfigXmlComment.cs
- WebAdminConfigurationHelper.cs
- XPathCompileException.cs
- ComplexBindingPropertiesAttribute.cs
- ScrollItemProviderWrapper.cs
- CurrentChangingEventArgs.cs
- RowUpdatedEventArgs.cs
- PageTheme.cs
- BinarySerializer.cs
- CollectionMarkupSerializer.cs
- VerificationAttribute.cs
- FixedElement.cs
- KeyTime.cs
- StreamDocument.cs
- ItemList.cs
- DataGridTablesFactory.cs
- EntityClientCacheKey.cs
- Vector3DCollection.cs
- RtfToken.cs