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
- XmlEncoding.cs
- DesignerValidatorAdapter.cs
- NullableDoubleAverageAggregationOperator.cs
- AuthenticationException.cs
- Profiler.cs
- EmissiveMaterial.cs
- WindowsSpinner.cs
- InternalDispatchObject.cs
- DataGridViewCheckBoxColumn.cs
- PartManifestEntry.cs
- XmlUnspecifiedAttribute.cs
- TextPatternIdentifiers.cs
- FixedTextContainer.cs
- QilName.cs
- ProcessThreadCollection.cs
- XmlSchemaComplexContent.cs
- EDesignUtil.cs
- XmlDesignerDataSourceView.cs
- XhtmlBasicFormAdapter.cs
- Validator.cs
- MSG.cs
- TokenDescriptor.cs
- XPathPatternParser.cs
- AsyncPostBackErrorEventArgs.cs
- XslNumber.cs
- DependencyPropertyChangedEventArgs.cs
- ExpandSegment.cs
- OpacityConverter.cs
- InternalConfigEventArgs.cs
- VerificationAttribute.cs
- ChtmlSelectionListAdapter.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- VisualStyleTypesAndProperties.cs
- WpfKnownMemberInvoker.cs
- PerformanceCounterPermission.cs
- CurrencyManager.cs
- CodeAttributeArgumentCollection.cs
- ApplicationActivator.cs
- XomlCompilerParameters.cs
- Vector3DValueSerializer.cs
- StringToken.cs
- SpanIndex.cs
- CaseExpr.cs
- SmtpLoginAuthenticationModule.cs
- TableItemStyle.cs
- StructuredProperty.cs
- CompositeFontFamily.cs
- ButtonPopupAdapter.cs
- MembershipValidatePasswordEventArgs.cs
- ArcSegment.cs
- ColumnWidthChangingEvent.cs
- XmlSignatureManifest.cs
- TemplatedAdorner.cs
- ModuleConfigurationInfo.cs
- TaskFileService.cs
- RijndaelManaged.cs
- EdgeModeValidation.cs
- TextRangeAdaptor.cs
- WindowsSpinner.cs
- DataSetUtil.cs
- TimeSpanValidatorAttribute.cs
- DBPropSet.cs
- CollectionEditor.cs
- Vector3DConverter.cs
- ChineseLunisolarCalendar.cs
- Token.cs
- Button.cs
- View.cs
- SpellerInterop.cs
- ComponentChangingEvent.cs
- VariableModifiersHelper.cs
- SecurityHelper.cs
- MenuItemAutomationPeer.cs
- DataGridPageChangedEventArgs.cs
- ManualResetEventSlim.cs
- Expander.cs
- Line.cs
- Crc32.cs
- XPathChildIterator.cs
- ZipIOLocalFileHeader.cs
- SqlDataSource.cs
- IsolatedStorage.cs
- QilGenerator.cs
- ScrollEvent.cs
- PageCopyCount.cs
- SqlConnectionPoolProviderInfo.cs
- RegexStringValidator.cs
- ChtmlImageAdapter.cs
- Rect3D.cs
- LookupNode.cs
- LogManagementAsyncResult.cs
- AssertSection.cs
- PowerStatus.cs
- SharedUtils.cs
- Error.cs
- CultureSpecificCharacterBufferRange.cs
- Calendar.cs
- DataSourceCacheDurationConverter.cs
- Identifier.cs
- AtlasWeb.Designer.cs