Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- UIElement3D.cs
- UnorderedHashRepartitionStream.cs
- ParseNumbers.cs
- ConsoleTraceListener.cs
- MappingSource.cs
- AffineTransform3D.cs
- DownloadProgressEventArgs.cs
- ShadowGlyph.cs
- ComAdminInterfaces.cs
- EntityWrapper.cs
- Point4DValueSerializer.cs
- SigningDialog.cs
- AutomationPropertyInfo.cs
- TextDecorations.cs
- ListViewGroupItemCollection.cs
- IndentTextWriter.cs
- dataprotectionpermission.cs
- DodSequenceMerge.cs
- TemplateInstanceAttribute.cs
- WindowsGraphics.cs
- NotificationContext.cs
- X509UI.cs
- HttpCookieCollection.cs
- MeasureItemEvent.cs
- Wildcard.cs
- CommandConverter.cs
- ParagraphResult.cs
- PowerModeChangedEventArgs.cs
- SafeIUnknown.cs
- ReadOnlyAttribute.cs
- MatrixAnimationUsingPath.cs
- StateMachineTimers.cs
- MsmqProcessProtocolHandler.cs
- SharedTcpTransportManager.cs
- SimpleFieldTemplateUserControl.cs
- login.cs
- CompiledRegexRunnerFactory.cs
- SharedConnectionInfo.cs
- DBSchemaTable.cs
- RequestQueryParser.cs
- SelectedGridItemChangedEvent.cs
- IdentityReference.cs
- XmlElementAttributes.cs
- TypeBinaryExpression.cs
- dataprotectionpermissionattribute.cs
- cryptoapiTransform.cs
- GridView.cs
- DLinqColumnProvider.cs
- ResourceManager.cs
- XmlBoundElement.cs
- XmlAttributeAttribute.cs
- UpdateTracker.cs
- ToolboxComponentsCreatedEventArgs.cs
- UpdateManifestForBrowserApplication.cs
- RunWorkerCompletedEventArgs.cs
- TypeReference.cs
- ObservableCollection.cs
- PerformanceCounterPermissionEntry.cs
- SimpleBitVector32.cs
- WebContext.cs
- MasterPage.cs
- Span.cs
- ManagedWndProcTracker.cs
- Repeater.cs
- RolePrincipal.cs
- shaper.cs
- StorageScalarPropertyMapping.cs
- PageVisual.cs
- Size.cs
- Byte.cs
- DBSqlParserTableCollection.cs
- NumericPagerField.cs
- CommandManager.cs
- Model3DCollection.cs
- TextSelectionHelper.cs
- Point4D.cs
- SparseMemoryStream.cs
- MediaContextNotificationWindow.cs
- ComEventsMethod.cs
- FormatConvertedBitmap.cs
- RouteParameter.cs
- InheritanceAttribute.cs
- LogManagementAsyncResult.cs
- LinqDataSourceStatusEventArgs.cs
- DockAndAnchorLayout.cs
- dataobject.cs
- RegionIterator.cs
- SettingsBindableAttribute.cs
- ThemeDirectoryCompiler.cs
- InstancePersistence.cs
- MimeTypePropertyAttribute.cs
- StrongNameIdentityPermission.cs
- SafeNativeMethods.cs
- ArgumentException.cs
- HierarchicalDataBoundControl.cs
- Decimal.cs
- FixedSOMContainer.cs
- ExpressionBindingCollection.cs
- DummyDataSource.cs
- XmlDocument.cs