Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / ErrorRuntimeConfig.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SchemaSetCompiler.cs
- ErrorsHelper.cs
- Bitmap.cs
- SafeFileHandle.cs
- Context.cs
- DateTimeSerializationSection.cs
- TraceUtils.cs
- UIntPtr.cs
- BindingMAnagerBase.cs
- ProcessProtocolHandler.cs
- SnapshotChangeTrackingStrategy.cs
- SwitchAttribute.cs
- FormatterServices.cs
- ParallelDesigner.cs
- ThrowHelper.cs
- DependencyObjectType.cs
- LeftCellWrapper.cs
- DeferredReference.cs
- SharedPersonalizationStateInfo.cs
- controlskin.cs
- DateTimeParse.cs
- GenericTypeParameterBuilder.cs
- ImpersonationOption.cs
- MarshalDirectiveException.cs
- EntityCollection.cs
- OdbcFactory.cs
- IpcChannelHelper.cs
- SqlNotificationEventArgs.cs
- Variant.cs
- SecurityPolicySection.cs
- DataBindEngine.cs
- SimpleRecyclingCache.cs
- PeerCollaboration.cs
- BitmapMetadataEnumerator.cs
- Column.cs
- LineGeometry.cs
- PageStatePersister.cs
- WebPartHelpVerb.cs
- HttpChannelHelper.cs
- ListView.cs
- QueryLifecycle.cs
- Padding.cs
- CaseStatementSlot.cs
- MarkupObject.cs
- WebPartTracker.cs
- Script.cs
- BooleanFunctions.cs
- WebPartPersonalization.cs
- SQLByteStorage.cs
- DispatcherExceptionFilterEventArgs.cs
- PropertyNames.cs
- UICuesEvent.cs
- DataGridParentRows.cs
- BasicSecurityProfileVersion.cs
- XmlBinaryWriter.cs
- DesignerCommandAdapter.cs
- XmlDocumentSurrogate.cs
- InheritanceAttribute.cs
- PerformanceCounterPermissionEntry.cs
- CodePropertyReferenceExpression.cs
- initElementDictionary.cs
- Brush.cs
- WorkerRequest.cs
- AmbiguousMatchException.cs
- FileDialog_Vista.cs
- PropertyChangedEventArgs.cs
- ReflectionPermission.cs
- ObjectFullSpanRewriter.cs
- OleDbDataAdapter.cs
- SqlFacetAttribute.cs
- DataGridViewSelectedRowCollection.cs
- MimeBasePart.cs
- ObjectStateEntryDbDataRecord.cs
- DataGridDetailsPresenterAutomationPeer.cs
- Margins.cs
- SchemaImporterExtension.cs
- ExpressionPrefixAttribute.cs
- HttpConfigurationContext.cs
- TableLayoutRowStyleCollection.cs
- DurationConverter.cs
- UInt64Converter.cs
- ContravarianceAdapter.cs
- TextSearch.cs
- DeclarativeExpressionConditionDeclaration.cs
- LabelEditEvent.cs
- TemplatedWizardStep.cs
- EnumCodeDomSerializer.cs
- UrlMappingsSection.cs
- ToolStripSeparatorRenderEventArgs.cs
- Point3DKeyFrameCollection.cs
- DataGridViewRowConverter.cs
- ServiceProviders.cs
- unsafeIndexingFilterStream.cs
- SoapRpcMethodAttribute.cs
- ProgressBar.cs
- FormatConvertedBitmap.cs
- PowerStatus.cs
- GridViewCommandEventArgs.cs
- XmlMembersMapping.cs
- ObjectConverter.cs