Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Hosting / HostingEnvironmentException.cs / 1 / HostingEnvironmentException.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Hosting {
using System;
using System.Runtime.Serialization;
using System.Security.Permissions;
[Serializable]
internal class HostingEnvironmentException : Exception {
private String _details;
protected HostingEnvironmentException(SerializationInfo info, StreamingContext context) : base(info, context) {
_details = info.GetString("_details");
}
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter=true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context) {
base.GetObjectData(info, context);
info.AddValue("_details", _details);
}
internal HostingEnvironmentException(String message, String details) : base(message) {
_details = details;
}
internal String Details {
get { return (_details != null) ? _details : String.Empty; }
}
}
}
// 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
- WorkflowHostingEndpoint.cs
- ExpressionConverter.cs
- ClaimTypes.cs
- DescendantOverDescendantQuery.cs
- FontFamilyIdentifier.cs
- RegexBoyerMoore.cs
- versioninfo.cs
- KeyedHashAlgorithm.cs
- GradientSpreadMethodValidation.cs
- LogReserveAndAppendState.cs
- CommandEventArgs.cs
- MediaSystem.cs
- MeasurementDCInfo.cs
- ClientType.cs
- StaticFileHandler.cs
- MimeWriter.cs
- StringUtil.cs
- LabelLiteral.cs
- CanExecuteRoutedEventArgs.cs
- MetadataLocation.cs
- ButtonChrome.cs
- AutoResizedEvent.cs
- DocumentViewerHelper.cs
- OleDbConnectionInternal.cs
- JournalEntry.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Polygon.cs
- ResourcePool.cs
- CodeCompiler.cs
- SoapTypeAttribute.cs
- TaskCanceledException.cs
- ModelPerspective.cs
- PagesChangedEventArgs.cs
- StateInitializationDesigner.cs
- PropertyTabChangedEvent.cs
- PathStreamGeometryContext.cs
- ScrollContentPresenter.cs
- XmlQueryTypeFactory.cs
- HtmlTextArea.cs
- Timer.cs
- ToolZone.cs
- LongTypeConverter.cs
- PropertyDescriptorCollection.cs
- ConstraintConverter.cs
- EmptyStringExpandableObjectConverter.cs
- TraceContextEventArgs.cs
- FramingFormat.cs
- WebDescriptionAttribute.cs
- SessionStateItemCollection.cs
- ViewCellRelation.cs
- BinaryMethodMessage.cs
- DateTimeAutomationPeer.cs
- RoutedUICommand.cs
- Polygon.cs
- Rotation3DKeyFrameCollection.cs
- HtmlTextArea.cs
- AssemblyInfo.cs
- DeclarativeCatalogPart.cs
- InboundActivityHelper.cs
- MailAddressCollection.cs
- Size.cs
- RtfToXamlLexer.cs
- GregorianCalendarHelper.cs
- FormViewCommandEventArgs.cs
- XmlChildEnumerator.cs
- BrowserCapabilitiesFactory.cs
- Ref.cs
- DefaultAsyncDataDispatcher.cs
- Vector3DConverter.cs
- BufferedStream2.cs
- BaseDataBoundControl.cs
- DescendantQuery.cs
- TextBoxAutomationPeer.cs
- AnimationClock.cs
- MessageFilter.cs
- InfoCardSymmetricAlgorithm.cs
- AsyncPostBackTrigger.cs
- DbParameterHelper.cs
- HyperLink.cs
- ListMarkerSourceInfo.cs
- ObfuscationAttribute.cs
- TextRange.cs
- ClientSponsor.cs
- DataList.cs
- RuntimeArgumentHandle.cs
- FontCollection.cs
- basevalidator.cs
- DataGridViewRowPostPaintEventArgs.cs
- CryptoConfig.cs
- Sequence.cs
- AccessedThroughPropertyAttribute.cs
- TypeUsageBuilder.cs
- Pen.cs
- ByteStreamGeometryContext.cs
- XmlSerializerFactory.cs
- PersonalizationStateQuery.cs
- StringValidator.cs
- HttpApplication.cs
- XmlValueConverter.cs
- ObjectQuery_EntitySqlExtensions.cs