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
- DbProviderServices.cs
- ScriptResourceInfo.cs
- DocumentSchemaValidator.cs
- WebPartConnectionsCancelVerb.cs
- SoapIgnoreAttribute.cs
- TemplateControlParser.cs
- VirtualPathProvider.cs
- StylusCaptureWithinProperty.cs
- SmiTypedGetterSetter.cs
- ClusterSafeNativeMethods.cs
- ToolTipAutomationPeer.cs
- CommonDialog.cs
- StylusEventArgs.cs
- CreateRefExpr.cs
- XmlCountingReader.cs
- SHA384Managed.cs
- _SpnDictionary.cs
- Transform3D.cs
- HtmlLiteralTextAdapter.cs
- XmlByteStreamReader.cs
- InternalCache.cs
- SafeNativeMethods.cs
- ProjectionPruner.cs
- QuotaThrottle.cs
- EmbeddedMailObjectCollectionEditor.cs
- CategoryGridEntry.cs
- ActivityBuilder.cs
- AdvancedBindingPropertyDescriptor.cs
- FieldAccessException.cs
- SHA384.cs
- AppearanceEditorPart.cs
- NotSupportedException.cs
- ToolStripButton.cs
- DynamicExpression.cs
- CorrelationTokenTypeConvertor.cs
- IntPtr.cs
- BasicDesignerLoader.cs
- RequestSecurityTokenResponse.cs
- ExecutedRoutedEventArgs.cs
- TextTreeRootNode.cs
- CallbackValidatorAttribute.cs
- UserInitiatedNavigationPermission.cs
- DetailsViewInsertedEventArgs.cs
- WizardPanel.cs
- ValidationEventArgs.cs
- Model3DGroup.cs
- safelink.cs
- PriorityRange.cs
- AuthenticationModulesSection.cs
- FileReservationCollection.cs
- ComponentDesigner.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- PrintDialog.cs
- ResourceManager.cs
- AspNetPartialTrustHelpers.cs
- ListInitExpression.cs
- DesignerTextBoxAdapter.cs
- SecurityCriticalDataForSet.cs
- MessageQueueAccessControlEntry.cs
- PropertyReferenceSerializer.cs
- WorkingDirectoryEditor.cs
- LayoutSettings.cs
- ActivityWithResult.cs
- ClearCollection.cs
- XmlTextWriter.cs
- FormView.cs
- WorkflowFormatterBehavior.cs
- NamespaceCollection.cs
- DynamicRendererThreadManager.cs
- ProcessHost.cs
- PrivateFontCollection.cs
- TextMetrics.cs
- Point3D.cs
- EnumMember.cs
- StyleTypedPropertyAttribute.cs
- UDPClient.cs
- SurrogateSelector.cs
- CollectionChange.cs
- XdrBuilder.cs
- WrapPanel.cs
- AuthenticationConfig.cs
- PopupEventArgs.cs
- SiteMapProvider.cs
- SubMenuStyleCollection.cs
- webclient.cs
- Mappings.cs
- TextTreeDeleteContentUndoUnit.cs
- securestring.cs
- InkCollectionBehavior.cs
- ApplicationContext.cs
- TextElementCollection.cs
- ColorAnimationBase.cs
- AutoScrollExpandMessageFilter.cs
- DelegatedStream.cs
- StrokeNodeOperations2.cs
- RtType.cs
- SupportsPreviewControlAttribute.cs
- HandledMouseEvent.cs
- FeedUtils.cs