Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Net / System / Net / HttpListenerException.cs / 1 / 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
- DbProviderServices.cs
- DifferencingCollection.cs
- CharacterShapingProperties.cs
- XhtmlBasicControlAdapter.cs
- TypographyProperties.cs
- _Win32.cs
- CrossContextChannel.cs
- EntitySqlQueryCacheEntry.cs
- WebBrowsableAttribute.cs
- UInt64.cs
- ImpersonateTokenRef.cs
- DataBinding.cs
- InfoCardProofToken.cs
- DotExpr.cs
- LinqDataSourceContextEventArgs.cs
- DateRangeEvent.cs
- RIPEMD160Managed.cs
- TextWriter.cs
- BufferedGraphics.cs
- SID.cs
- ClickablePoint.cs
- SqlDataRecord.cs
- AmbientLight.cs
- TimeSpanConverter.cs
- InputLanguageProfileNotifySink.cs
- EntityDataSourceValidationException.cs
- VirtualPath.cs
- ColumnMapProcessor.cs
- PathSegment.cs
- RegexInterpreter.cs
- BinaryObjectInfo.cs
- SiteMapNode.cs
- CompositeTypefaceMetrics.cs
- ItemContainerGenerator.cs
- UnsafeNativeMethods.cs
- DbConnectionPoolGroup.cs
- TextBox.cs
- UInt32Storage.cs
- Thread.cs
- FacetValues.cs
- XmlSortKey.cs
- LogExtent.cs
- ZipPackagePart.cs
- CollectionChangeEventArgs.cs
- XmlSignatureProperties.cs
- DataBinder.cs
- UInt32Converter.cs
- VirtualDirectoryMappingCollection.cs
- WebPartCloseVerb.cs
- RightNameExpirationInfoPair.cs
- FixedPosition.cs
- EndEvent.cs
- DataGridViewControlCollection.cs
- RequestQueue.cs
- ExceptionList.cs
- AnchoredBlock.cs
- SignedInfo.cs
- FrameworkPropertyMetadata.cs
- RuntimeHelpers.cs
- Closure.cs
- ContractTypeNameElement.cs
- TrackingSection.cs
- RepeatInfo.cs
- TrustSection.cs
- TemplatedAdorner.cs
- HttpModuleAction.cs
- TypefaceMetricsCache.cs
- BeginStoryboard.cs
- Condition.cs
- CellParaClient.cs
- SqlAliasesReferenced.cs
- CollectionMarkupSerializer.cs
- DataGridPagerStyle.cs
- XLinq.cs
- WSTrust.cs
- DataGridPagingPage.cs
- HttpListenerException.cs
- FontInfo.cs
- SerializationInfo.cs
- StreamGeometryContext.cs
- RefType.cs
- securestring.cs
- ConfigXmlSignificantWhitespace.cs
- CompatibleIComparer.cs
- DataGridColumnCollection.cs
- AspNetCacheProfileAttribute.cs
- CompilerErrorCollection.cs
- MonitoringDescriptionAttribute.cs
- CollectionViewGroupRoot.cs
- AnnotationMap.cs
- ControlValuePropertyAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- DefaultValueAttribute.cs
- InstanceDataCollection.cs
- ToolStripDesignerUtils.cs
- ServiceProviders.cs
- SecurityUtils.cs
- HtmlTitle.cs
- DesignerVerbToolStripMenuItem.cs
- SByte.cs