Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InputProcessorProfiles.cs
- SortedList.cs
- CompilerTypeWithParams.cs
- SystemUnicastIPAddressInformation.cs
- TdsParserStaticMethods.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- Events.cs
- ProxyWebPart.cs
- ConfigurationValidatorBase.cs
- VoiceInfo.cs
- PrimitiveSchema.cs
- SBCSCodePageEncoding.cs
- DataBinder.cs
- XmlSchemaImport.cs
- LedgerEntryCollection.cs
- SecurityTokenParametersEnumerable.cs
- EntityDataSourceWizardForm.cs
- WindowsToolbarItemAsMenuItem.cs
- CustomCategoryAttribute.cs
- ThicknessAnimation.cs
- InvocationExpression.cs
- InputLanguageProfileNotifySink.cs
- DataControlFieldCollection.cs
- MetadataCacheItem.cs
- NTAccount.cs
- UpdateProgress.cs
- DataQuery.cs
- InputManager.cs
- XmlNamespaceMappingCollection.cs
- EventRouteFactory.cs
- GridItemCollection.cs
- UnionQueryOperator.cs
- DiagnosticStrings.cs
- ActivityPreviewDesigner.cs
- ListViewGroup.cs
- NameTable.cs
- XmlTextAttribute.cs
- BoolExpression.cs
- LayoutTableCell.cs
- arclist.cs
- ObjectStorage.cs
- AnimationClockResource.cs
- BitmapCacheBrush.cs
- CompiledRegexRunnerFactory.cs
- FreeFormDragDropManager.cs
- BoundField.cs
- WeakReference.cs
- EntityConnectionStringBuilderItem.cs
- CommandManager.cs
- GAC.cs
- AVElementHelper.cs
- CreateUserWizardStep.cs
- SystemPens.cs
- XmlAttributeHolder.cs
- DataTableNewRowEvent.cs
- ExecutionContext.cs
- NativeObjectSecurity.cs
- RootProfilePropertySettingsCollection.cs
- ColorIndependentAnimationStorage.cs
- PropertyDescriptorGridEntry.cs
- __FastResourceComparer.cs
- SystemUnicastIPAddressInformation.cs
- SystemThemeKey.cs
- MinMaxParagraphWidth.cs
- ArrayConverter.cs
- FixedSOMPageElement.cs
- Transform3DGroup.cs
- RandomNumberGenerator.cs
- ButtonChrome.cs
- ButtonChrome.cs
- RuleSetCollection.cs
- FixedDSBuilder.cs
- CodeAccessSecurityEngine.cs
- XmlCharCheckingWriter.cs
- CfgParser.cs
- _Rfc2616CacheValidators.cs
- MimeAnyImporter.cs
- SafeNativeMethodsCLR.cs
- XmlDocumentSurrogate.cs
- MarkupWriter.cs
- Vector.cs
- MimeObjectFactory.cs
- CacheChildrenQuery.cs
- AmbientLight.cs
- LayoutExceptionEventArgs.cs
- ReadOnlyCollection.cs
- XmlDocumentFragment.cs
- ListMarkerSourceInfo.cs
- UIServiceHelper.cs
- DeviceContexts.cs
- PropertyIDSet.cs
- HttpServerProtocol.cs
- ObjectDataSourceDisposingEventArgs.cs
- XamlBrushSerializer.cs
- ProfileInfo.cs
- FtpRequestCacheValidator.cs
- MenuTracker.cs
- UserControl.cs
- RoleBoolean.cs
- CanonicalizationDriver.cs