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
- CommonXSendMessage.cs
- BamlResourceSerializer.cs
- RenderData.cs
- TextReader.cs
- DSASignatureDeformatter.cs
- RangeValuePatternIdentifiers.cs
- BitStream.cs
- WorkflowFileItem.cs
- COAUTHINFO.cs
- BypassElement.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Effect.cs
- Mapping.cs
- KeyPullup.cs
- HiddenField.cs
- RijndaelManagedTransform.cs
- DocumentPaginator.cs
- DesignBinding.cs
- UserPreferenceChangedEventArgs.cs
- ArraySegment.cs
- BitConverter.cs
- ConsoleKeyInfo.cs
- X509CertificateCollection.cs
- FormsAuthenticationEventArgs.cs
- IteratorFilter.cs
- CodePageEncoding.cs
- ZoomPercentageConverter.cs
- TemplateBaseAction.cs
- CalculatedColumn.cs
- UseAttributeSetsAction.cs
- SqlComparer.cs
- WriteableOnDemandStream.cs
- ShowExpandedMultiValueConverter.cs
- Gdiplus.cs
- LogExtent.cs
- WebUtil.cs
- UIPropertyMetadata.cs
- TabRenderer.cs
- Mutex.cs
- ThrowOnMultipleAssignment.cs
- PropagationProtocolsTracing.cs
- PtsContext.cs
- DesignerActionHeaderItem.cs
- HwndProxyElementProvider.cs
- ResourceManager.cs
- ThicknessAnimationBase.cs
- MsmqBindingElementBase.cs
- WebPartMovingEventArgs.cs
- ControlPaint.cs
- SQLByteStorage.cs
- SocketElement.cs
- DiscoveryClientChannelFactory.cs
- SignatureResourcePool.cs
- WebConfigurationHost.cs
- IPipelineRuntime.cs
- GeneralTransform2DTo3DTo2D.cs
- LinqDataSourceContextData.cs
- IndexOutOfRangeException.cs
- XamlStyleSerializer.cs
- CreateUserWizard.cs
- ThreadPool.cs
- SoapObjectWriter.cs
- ContextMenuAutomationPeer.cs
- NavigationExpr.cs
- ListBoxItemAutomationPeer.cs
- DBBindings.cs
- ValidationSummary.cs
- DriveInfo.cs
- InstalledVoice.cs
- AppliedDeviceFiltersDialog.cs
- ServiceControllerDesigner.cs
- PreviewPageInfo.cs
- RegistrySecurity.cs
- SecurityElement.cs
- DataObjectPastingEventArgs.cs
- _ScatterGatherBuffers.cs
- Freezable.cs
- ConfigViewGenerator.cs
- FileLoadException.cs
- TaiwanLunisolarCalendar.cs
- unsafenativemethodstextservices.cs
- DocumentsTrace.cs
- SessionEndingCancelEventArgs.cs
- LoginDesignerUtil.cs
- ProcessHostMapPath.cs
- ListView.cs
- HwndSubclass.cs
- PersistenceParticipant.cs
- TileModeValidation.cs
- PathParser.cs
- OletxTransactionManager.cs
- GraphicsPath.cs
- CodeTypeDeclarationCollection.cs
- SoapRpcServiceAttribute.cs
- SoapFault.cs
- DataGridCommandEventArgs.cs
- WebPartVerbCollection.cs
- GifBitmapEncoder.cs
- columnmapkeybuilder.cs
- DrawingGroup.cs