Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / HttpListenerException.cs / 1305376 / HttpListenerException.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Net
{
using System;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Runtime.InteropServices;
[Serializable]
public class HttpListenerException : Win32Exception
{
public HttpListenerException() : base(Marshal.GetLastWin32Error())
{
GlobalLog.Print("HttpListenerException::.ctor() " + NativeErrorCode.ToString() + ":" + Message);
}
public HttpListenerException(int errorCode) : base(errorCode)
{
GlobalLog.Print("HttpListenerException::.ctor(int) " + NativeErrorCode.ToString() + ":" + Message);
}
public HttpListenerException(int errorCode, string message) : base(errorCode, message)
{
GlobalLog.Print("HttpListenerException::.ctor(int) " + NativeErrorCode.ToString() + ":" + Message);
}
protected HttpListenerException(SerializationInfo serializationInfo, StreamingContext streamingContext)
: base(serializationInfo, streamingContext)
{
GlobalLog.Print("HttpListenerException::.ctor(serialized) " + NativeErrorCode.ToString() + ":" + Message);
}
public override int ErrorCode
{
//
// the base class returns the HResult with this property
// we need the Win32 Error Code, hence the override.
//
get
{
return NativeErrorCode;
}
}
}
}
// 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
- UnaryNode.cs
- SchemaComplexType.cs
- DataSvcMapFileSerializer.cs
- NativeMethods.cs
- JournalEntryStack.cs
- basevalidator.cs
- PropertyFilterAttribute.cs
- CookieProtection.cs
- XamlGridLengthSerializer.cs
- ContentControl.cs
- TableLayoutRowStyleCollection.cs
- ConnectionConsumerAttribute.cs
- FilteredDataSetHelper.cs
- ModuleConfigurationInfo.cs
- KeyTimeConverter.cs
- MemberAccessException.cs
- FixedSOMPageElement.cs
- OrderedDictionaryStateHelper.cs
- PointAnimationUsingKeyFrames.cs
- DescendentsWalkerBase.cs
- GroupBoxAutomationPeer.cs
- ColorMatrix.cs
- ObjectToModelValueConverter.cs
- AVElementHelper.cs
- Predicate.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- BasicCommandTreeVisitor.cs
- NullableFloatSumAggregationOperator.cs
- PathSegment.cs
- ApplicationDirectory.cs
- SelectionManager.cs
- CollectionBuilder.cs
- EntityObject.cs
- XmlKeywords.cs
- ConfigurationManagerInternal.cs
- CDSsyncETWBCLProvider.cs
- XmlCountingReader.cs
- FixedSOMPage.cs
- DbProviderFactory.cs
- RemotingSurrogateSelector.cs
- CreateInstanceBinder.cs
- NativeMethods.cs
- WindowsBrush.cs
- LogStore.cs
- HttpListenerResponse.cs
- MatrixTransform3D.cs
- XamlInt32CollectionSerializer.cs
- ElementHost.cs
- DynamicRendererThreadManager.cs
- DataGridPageChangedEventArgs.cs
- MatrixConverter.cs
- WindowsRichEdit.cs
- LayoutTable.cs
- JavaScriptObjectDeserializer.cs
- PersonalizablePropertyEntry.cs
- ControlCollection.cs
- MarshalByRefObject.cs
- HtmlElement.cs
- AudioSignalProblemOccurredEventArgs.cs
- StateWorkerRequest.cs
- PathFigureCollection.cs
- ForAllOperator.cs
- AnyAllSearchOperator.cs
- ColorAnimationBase.cs
- SRGSCompiler.cs
- HtmlImage.cs
- ISAPIWorkerRequest.cs
- BaseHashHelper.cs
- ClientTarget.cs
- NullableBoolConverter.cs
- BindingMemberInfo.cs
- SizeFConverter.cs
- PassportAuthenticationModule.cs
- AutomationEventArgs.cs
- FileDialogCustomPlacesCollection.cs
- HyperLinkField.cs
- ValidatingReaderNodeData.cs
- EncryptedHeader.cs
- ContainerFilterService.cs
- DesignerLoader.cs
- backend.cs
- RoleGroupCollection.cs
- ExitEventArgs.cs
- SelectionProcessor.cs
- MSAANativeProvider.cs
- AttachedPropertiesService.cs
- EngineSiteSapi.cs
- ProtocolImporter.cs
- InternalResources.cs
- PeerEndPoint.cs
- Menu.cs
- PresentationTraceSources.cs
- FamilyMapCollection.cs
- _HeaderInfo.cs
- ConnectionStringsSection.cs
- HttpCacheParams.cs
- MaxValueConverter.cs
- DataGridViewAccessibleObject.cs
- EntityType.cs
- ReferencedAssembly.cs