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
- SelfSignedCertificate.cs
- ClientCultureInfo.cs
- DataGridViewTopLeftHeaderCell.cs
- TypedElement.cs
- WebPartVerbCollection.cs
- OrderPreservingPipeliningSpoolingTask.cs
- Deflater.cs
- WebScriptServiceHostFactory.cs
- CompilerScopeManager.cs
- ScrollProviderWrapper.cs
- ScriptRegistrationManager.cs
- followingsibling.cs
- ContextStack.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- WindowsIPAddress.cs
- PolyQuadraticBezierSegment.cs
- SQLGuid.cs
- PermissionAttributes.cs
- FontFamilyIdentifier.cs
- TransformCryptoHandle.cs
- CharEnumerator.cs
- ToolboxItem.cs
- ExpressionConverter.cs
- DefaultBinder.cs
- TypedTableBase.cs
- MediaTimeline.cs
- OutputCacheEntry.cs
- Scheduler.cs
- ConfigurationPropertyCollection.cs
- Label.cs
- TextBox.cs
- PerformanceCounterLib.cs
- IdnMapping.cs
- Row.cs
- AssemblyName.cs
- UrlEncodedParameterWriter.cs
- SecurityCriticalDataForSet.cs
- FormViewRow.cs
- ZipIOLocalFileBlock.cs
- DbCommandDefinition.cs
- UnsafeNativeMethodsCLR.cs
- XmlMapping.cs
- RegexReplacement.cs
- Canvas.cs
- PolicyConversionContext.cs
- RoutedEventValueSerializer.cs
- InputScopeManager.cs
- tooltip.cs
- RepeatButtonAutomationPeer.cs
- EntityStoreSchemaFilterEntry.cs
- PrePrepareMethodAttribute.cs
- TableHeaderCell.cs
- ContentControl.cs
- WebServiceData.cs
- DefaultPrintController.cs
- StackOverflowException.cs
- SoapInteropTypes.cs
- TextLineBreak.cs
- PerformanceCounterManager.cs
- ComboBoxHelper.cs
- EventArgs.cs
- DynamicResourceExtensionConverter.cs
- ExpressionBindingCollection.cs
- _TLSstream.cs
- ToolStripContentPanelRenderEventArgs.cs
- HttpListenerPrefixCollection.cs
- HostingEnvironmentWrapper.cs
- EnumValAlphaComparer.cs
- ComponentResourceKeyConverter.cs
- HashCodeCombiner.cs
- XmlSchemaSimpleContentRestriction.cs
- ListBox.cs
- InputLanguageCollection.cs
- HorizontalAlignConverter.cs
- PersonalizationProviderCollection.cs
- PartialTrustValidationBehavior.cs
- ProviderConnectionPointCollection.cs
- XmlEntityReference.cs
- SpotLight.cs
- DataSet.cs
- GPStream.cs
- XmlQualifiedName.cs
- File.cs
- DataGridItemEventArgs.cs
- TaiwanLunisolarCalendar.cs
- AnnotationResource.cs
- PointKeyFrameCollection.cs
- XmlSerializableReader.cs
- TreeNodeEventArgs.cs
- DecimalAnimation.cs
- ResourceFallbackManager.cs
- HttpWebRequest.cs
- Matrix3D.cs
- BamlRecordWriter.cs
- PropertyGridEditorPart.cs
- FlowDocumentReaderAutomationPeer.cs
- MapPathBasedVirtualPathProvider.cs
- XmlEncodedRawTextWriter.cs
- SignedXml.cs
- MainMenu.cs