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
- Rotation3DAnimationUsingKeyFrames.cs
- StylusOverProperty.cs
- MaskedTextBoxDesignerActionList.cs
- LoopExpression.cs
- ResourceReferenceExpression.cs
- ClientSideQueueItem.cs
- AspCompat.cs
- QueryExpr.cs
- OleDbWrapper.cs
- BinaryNode.cs
- ProfileProvider.cs
- DynamicContractTypeBuilder.cs
- MultiBinding.cs
- FilteredXmlReader.cs
- LambdaSerializationException.cs
- Aggregates.cs
- ListBindableAttribute.cs
- PingReply.cs
- NavigationProperty.cs
- HandlerBase.cs
- WebPartManagerDesigner.cs
- GeneratedView.cs
- ErrorTolerantObjectWriter.cs
- UnhandledExceptionEventArgs.cs
- SessionStateContainer.cs
- RelatedEnd.cs
- TableCell.cs
- XmlTypeMapping.cs
- ContextMenu.cs
- DataServiceKeyAttribute.cs
- InteropEnvironment.cs
- OverlappedAsyncResult.cs
- TextTreeTextNode.cs
- ListViewItem.cs
- BaseProcessor.cs
- TagPrefixCollection.cs
- CodeGenerator.cs
- PlatformNotSupportedException.cs
- FontSizeConverter.cs
- FixedTextSelectionProcessor.cs
- AnimationTimeline.cs
- ValueSerializer.cs
- BamlTreeNode.cs
- TextDecorationCollectionConverter.cs
- UIElement3D.cs
- ResourceKey.cs
- UInt16.cs
- _UriSyntax.cs
- DataTableMapping.cs
- KeyValuePair.cs
- Thread.cs
- InheritedPropertyChangedEventArgs.cs
- WebPartChrome.cs
- ManagedWndProcTracker.cs
- SecurityResources.cs
- SafeArrayTypeMismatchException.cs
- AuthorizationSection.cs
- Path.cs
- MergeExecutor.cs
- EventListener.cs
- BitArray.cs
- Point4D.cs
- ListMarkerSourceInfo.cs
- StyleHelper.cs
- DocumentPageTextView.cs
- X509Extension.cs
- DocumentPaginator.cs
- ChannelSinkStacks.cs
- InternalsVisibleToAttribute.cs
- HandleRef.cs
- SqlRetyper.cs
- BuilderPropertyEntry.cs
- Rect.cs
- ResolveDuplexCD1AsyncResult.cs
- LinkedList.cs
- PublishLicense.cs
- AppLevelCompilationSectionCache.cs
- DrawToolTipEventArgs.cs
- ToolTipAutomationPeer.cs
- CheckBox.cs
- UnsafeNativeMethods.cs
- WebMessageEncodingBindingElement.cs
- LinkedResource.cs
- ConnectionManagementElement.cs
- Parser.cs
- ConnectionManager.cs
- ManipulationStartedEventArgs.cs
- CharacterString.cs
- InputScopeManager.cs
- WebPermission.cs
- SourceFilter.cs
- PageTheme.cs
- ToolStripDropTargetManager.cs
- Mapping.cs
- MobileFormsAuthentication.cs
- HtmlEmptyTagControlBuilder.cs
- HwndStylusInputProvider.cs
- COAUTHIDENTITY.cs
- DataGridColumnHeader.cs
- EnumConverter.cs