Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
// 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
- precedingquery.cs
- BaseHashHelper.cs
- CurrencyManager.cs
- BordersPage.cs
- CachedFontFace.cs
- DataBoundControl.cs
- BinHexEncoding.cs
- GroupByQueryOperator.cs
- DesignOnlyAttribute.cs
- NullableConverter.cs
- TextEditorTyping.cs
- GroupQuery.cs
- TemplateNameScope.cs
- SqlErrorCollection.cs
- AmbientValueAttribute.cs
- RemoteHelper.cs
- DesignerHierarchicalDataSourceView.cs
- ConfigurationPropertyCollection.cs
- ModelVisual3D.cs
- SQLByte.cs
- CustomAttribute.cs
- WebColorConverter.cs
- MethodBuilderInstantiation.cs
- RectangleConverter.cs
- EdmItemCollection.OcAssemblyCache.cs
- ConsoleCancelEventArgs.cs
- LassoHelper.cs
- CertificateManager.cs
- ADMembershipUser.cs
- StartUpEventArgs.cs
- MenuItemCollection.cs
- HuffmanTree.cs
- TableLayout.cs
- CollectionContainer.cs
- IntegrationExceptionEventArgs.cs
- ModelFunction.cs
- XmlWriterSettings.cs
- MediaTimeline.cs
- Int16Storage.cs
- DictionarySectionHandler.cs
- ToolStripKeyboardHandlingService.cs
- CustomAttributeSerializer.cs
- DrawingContextWalker.cs
- HttpCookiesSection.cs
- DisplayInformation.cs
- TabPanel.cs
- OciLobLocator.cs
- SymbolPair.cs
- FirstQueryOperator.cs
- DependsOnAttribute.cs
- SynchronousReceiveElement.cs
- ExpressionBuilderCollection.cs
- QuaternionAnimationBase.cs
- ComplexLine.cs
- ClientCultureInfo.cs
- GeneralTransform3DTo2DTo3D.cs
- DataServiceExpressionVisitor.cs
- WrappedDispatcherException.cs
- QueryableFilterUserControl.cs
- _AcceptOverlappedAsyncResult.cs
- DataReaderContainer.cs
- Connection.cs
- ObservableCollection.cs
- EntitySqlQueryCacheEntry.cs
- StatusStrip.cs
- XamlRtfConverter.cs
- SwitchElementsCollection.cs
- TextOutput.cs
- PointCollection.cs
- Group.cs
- ToolStripInSituService.cs
- EdmType.cs
- XdrBuilder.cs
- SystemWebExtensionsSectionGroup.cs
- TranslateTransform.cs
- FrameworkPropertyMetadata.cs
- FixedSOMElement.cs
- CodeStatement.cs
- SerializerWriterEventHandlers.cs
- RequestCachePolicy.cs
- ScrollProperties.cs
- SettingsProviderCollection.cs
- LocalizableAttribute.cs
- HtmlInputRadioButton.cs
- RectangleGeometry.cs
- CompiledQuery.cs
- LinkedList.cs
- Model3DGroup.cs
- FontUnit.cs
- TimeSpanStorage.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ExpressionNode.cs
- ProbeDuplexAsyncResult.cs
- CollaborationHelperFunctions.cs
- InputBinding.cs
- sqlnorm.cs
- SecurityKeyUsage.cs
- QuaternionKeyFrameCollection.cs
- DynamicResourceExtensionConverter.cs
- StrokeRenderer.cs