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
- XmlElement.cs
- NotifyCollectionChangedEventArgs.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- TimeStampChecker.cs
- LineProperties.cs
- LayoutTableCell.cs
- BitmapVisualManager.cs
- VisualProxy.cs
- InstanceDataCollectionCollection.cs
- DependencyPropertyKey.cs
- XmlILConstructAnalyzer.cs
- DropShadowBitmapEffect.cs
- SingleObjectCollection.cs
- Symbol.cs
- ToolStripContentPanelRenderEventArgs.cs
- SimpleWorkerRequest.cs
- AppearanceEditorPart.cs
- DataGridViewColumn.cs
- AutomationElementCollection.cs
- AnyAllSearchOperator.cs
- VectorKeyFrameCollection.cs
- BatchWriter.cs
- DropTarget.cs
- DBNull.cs
- ErrorWebPart.cs
- Style.cs
- FormatSettings.cs
- METAHEADER.cs
- FormsAuthenticationUserCollection.cs
- ListViewItemMouseHoverEvent.cs
- ExpressionHelper.cs
- TdsEnums.cs
- EditCommandColumn.cs
- UIElementHelper.cs
- CompilerScopeManager.cs
- Margins.cs
- ProgressBarRenderer.cs
- XpsResourceDictionary.cs
- EntityDataSourceDataSelection.cs
- CqlWriter.cs
- NavigatorInput.cs
- XamlBrushSerializer.cs
- AbstractExpressions.cs
- ExceptionUtil.cs
- Errors.cs
- Image.cs
- Globals.cs
- OleDbEnumerator.cs
- UrlPath.cs
- OleDbSchemaGuid.cs
- CodeDelegateCreateExpression.cs
- SmiEventSink_DeferedProcessing.cs
- WebPartConnectionsCancelEventArgs.cs
- _ProxyChain.cs
- ObjectDataSourceMethodEventArgs.cs
- OneOf.cs
- XamlToRtfWriter.cs
- SecurityDocument.cs
- _AuthenticationState.cs
- PresentationTraceSources.cs
- MethodCallTranslator.cs
- DesignDataSource.cs
- XmlAttributeAttribute.cs
- ClientProxyGenerator.cs
- TabControlEvent.cs
- SqlXml.cs
- ConfigurationManagerInternalFactory.cs
- DiscoveryDocumentLinksPattern.cs
- XmlSchemaCollection.cs
- EdmConstants.cs
- CngUIPolicy.cs
- Attribute.cs
- OdbcConnectionString.cs
- ContextInformation.cs
- DataGridViewUtilities.cs
- StorageBasedPackageProperties.cs
- InvokeWebService.cs
- ImmutableObjectAttribute.cs
- DifferencingCollection.cs
- SequenceDesigner.cs
- RuleSettings.cs
- SoapSchemaMember.cs
- ScrollData.cs
- IisTraceListener.cs
- CanonicalFontFamilyReference.cs
- SqlCacheDependencySection.cs
- ResourceDescriptionAttribute.cs
- ProfileService.cs
- EnumBuilder.cs
- QueryReaderSettings.cs
- HandlerBase.cs
- ListControl.cs
- WindowsTab.cs
- SystemTcpStatistics.cs
- SqlErrorCollection.cs
- PrintControllerWithStatusDialog.cs
- Convert.cs
- LineGeometry.cs
- CustomLineCap.cs
- SelectionProcessor.cs