Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- TextFormatterContext.cs
- tabpagecollectioneditor.cs
- DeviceSpecificDesigner.cs
- RadioButton.cs
- CommonGetThemePartSize.cs
- ListView.cs
- SoapAttributeAttribute.cs
- DynamicILGenerator.cs
- OwnerDrawPropertyBag.cs
- SelectionRange.cs
- PrivilegedConfigurationManager.cs
- CustomAttribute.cs
- FeatureSupport.cs
- WorkflowApplicationTerminatedException.cs
- TimelineCollection.cs
- WebPartConnectionsCancelVerb.cs
- SystemPens.cs
- ConfigUtil.cs
- SQLSingleStorage.cs
- XDeferredAxisSource.cs
- DescendantQuery.cs
- OrCondition.cs
- HttpDictionary.cs
- SQLSingleStorage.cs
- CompositeActivityTypeDescriptor.cs
- BrowsableAttribute.cs
- ProfileManager.cs
- UnsettableComboBox.cs
- ComponentDispatcher.cs
- Root.cs
- MobileUserControl.cs
- TiffBitmapEncoder.cs
- TableLayoutPanel.cs
- userdatakeys.cs
- Events.cs
- EntityStoreSchemaFilterEntry.cs
- AxisAngleRotation3D.cs
- SQLInt16.cs
- SQLString.cs
- xml.cs
- PeerNameRecord.cs
- ClientUrlResolverWrapper.cs
- CollectionChangeEventArgs.cs
- TransactionContextManager.cs
- ResourceDictionaryCollection.cs
- RepeatBehavior.cs
- KeyEvent.cs
- XmlImplementation.cs
- ContextProperty.cs
- SessionEndingCancelEventArgs.cs
- BypassElementCollection.cs
- SerializerWriterEventHandlers.cs
- ObjectStateEntry.cs
- HtmlInputReset.cs
- ErrorRuntimeConfig.cs
- BooleanAnimationBase.cs
- UiaCoreTypesApi.cs
- OutputChannelBinder.cs
- TraceSection.cs
- DataGridViewImageColumn.cs
- Guid.cs
- MessagePropertyAttribute.cs
- TraceLevelStore.cs
- AddingNewEventArgs.cs
- Listbox.cs
- PolyQuadraticBezierSegment.cs
- ToolStripGrip.cs
- LambdaCompiler.Binary.cs
- LiteralControl.cs
- DbProviderConfigurationHandler.cs
- ImageSource.cs
- TagMapInfo.cs
- CornerRadiusConverter.cs
- Math.cs
- SocketAddress.cs
- SafeRightsManagementHandle.cs
- XsltLibrary.cs
- SessionStateSection.cs
- Debug.cs
- HttpRuntimeSection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CodeCommentStatementCollection.cs
- LayoutSettings.cs
- UnsafeMethods.cs
- BaseTemplateCodeDomTreeGenerator.cs
- OptimisticConcurrencyException.cs
- _SSPISessionCache.cs
- IRCollection.cs
- ToolTipService.cs
- QueryFunctions.cs
- CompilationLock.cs
- MenuEventArgs.cs
- InvalidAsynchronousStateException.cs
- XmlElementAttribute.cs
- CssStyleCollection.cs
- NotificationContext.cs
- FontFamilyConverter.cs
- FixedLineResult.cs
- ThicknessAnimationUsingKeyFrames.cs
- HttpApplicationStateWrapper.cs