Code:
/ DotNET / DotNET / 8.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
- GACMembershipCondition.cs
- WSTrustDec2005.cs
- ControlValuePropertyAttribute.cs
- XmlSchemaChoice.cs
- DesignRelationCollection.cs
- StringValidator.cs
- RegexGroupCollection.cs
- Compiler.cs
- NullRuntimeConfig.cs
- Soap12ServerProtocol.cs
- DesignerView.Commands.cs
- CollectionBase.cs
- Camera.cs
- QueryOutputWriter.cs
- OptionUsage.cs
- PopOutPanel.cs
- TextBox.cs
- DataRecordInternal.cs
- EdmProperty.cs
- SecurityTokenTypes.cs
- JsonEnumDataContract.cs
- WindowsEditBox.cs
- UnsafeNativeMethods.cs
- CompiledXpathExpr.cs
- NoClickablePointException.cs
- TextServicesCompartmentContext.cs
- LinkButton.cs
- DesignerProperties.cs
- AnnotationComponentChooser.cs
- UnsafeNativeMethods.cs
- RuntimeConfigurationRecord.cs
- DataException.cs
- UInt64Storage.cs
- RecordsAffectedEventArgs.cs
- ChineseLunisolarCalendar.cs
- DataGridViewCheckBoxCell.cs
- Panel.cs
- ProjectionPruner.cs
- CanonicalXml.cs
- AuthenticationService.cs
- PointCollectionValueSerializer.cs
- COM2ExtendedBrowsingHandler.cs
- LinearKeyFrames.cs
- StringToken.cs
- DLinqDataModelProvider.cs
- PerformanceCounterPermissionAttribute.cs
- SubMenuStyleCollection.cs
- SweepDirectionValidation.cs
- WebPartManagerInternals.cs
- MappingItemCollection.cs
- SqlMethodTransformer.cs
- ExpressionSelection.cs
- TlsnegoTokenProvider.cs
- BindingGroup.cs
- ScrollChrome.cs
- EventLogConfiguration.cs
- TransformerTypeCollection.cs
- CommentEmitter.cs
- ArgumentNullException.cs
- RegistrySecurity.cs
- InlinedLocationReference.cs
- Polyline.cs
- IpcPort.cs
- XPathNodeHelper.cs
- SymmetricCryptoHandle.cs
- ExpressionPrefixAttribute.cs
- CalendarDay.cs
- SafeCryptContextHandle.cs
- WebPartActionVerb.cs
- ResourceDisplayNameAttribute.cs
- BaseTemplateParser.cs
- PropertyPath.cs
- Renderer.cs
- TextTreeInsertElementUndoUnit.cs
- HMAC.cs
- DefaultTraceListener.cs
- DataServiceContext.cs
- ToolStripItemRenderEventArgs.cs
- DrawingGroup.cs
- BaseConfigurationRecord.cs
- DocumentXPathNavigator.cs
- ApplicationDirectoryMembershipCondition.cs
- EnumConverter.cs
- PerformanceCounterNameAttribute.cs
- DataGridViewAdvancedBorderStyle.cs
- ServiceNotStartedException.cs
- ResourceKey.cs
- AnnotationResource.cs
- UTF7Encoding.cs
- ValidationErrorCollection.cs
- DataViewSetting.cs
- SqlUtil.cs
- StructuralObject.cs
- SelectorAutomationPeer.cs
- log.cs
- ItemCollection.cs
- TabletDeviceInfo.cs
- AuthorizationRule.cs
- VisualStyleRenderer.cs
- ObjectQueryProvider.cs