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
- BinaryReader.cs
- DetailsViewPageEventArgs.cs
- UpdateCommand.cs
- XamlFigureLengthSerializer.cs
- SymmetricAlgorithm.cs
- StringConcat.cs
- XhtmlBasicPanelAdapter.cs
- DrawingGroup.cs
- OleDbException.cs
- PrincipalPermissionMode.cs
- ProfilePropertyNameValidator.cs
- ExpressionReplacer.cs
- FileDialog_Vista.cs
- HashSetEqualityComparer.cs
- WebServiceEnumData.cs
- Listbox.cs
- ContentElementCollection.cs
- DataGridViewCellParsingEventArgs.cs
- BamlResourceDeserializer.cs
- TableItemStyle.cs
- _ListenerResponseStream.cs
- XmlText.cs
- CustomSignedXml.cs
- ExternalFile.cs
- EventLogEntry.cs
- UpdateTracker.cs
- DataTableCollection.cs
- TraceListener.cs
- ConfigurationElementCollection.cs
- GcSettings.cs
- RouteItem.cs
- GridViewDesigner.cs
- Size.cs
- ExpressionBinding.cs
- GradientStop.cs
- MergePropertyDescriptor.cs
- DataSetViewSchema.cs
- StrokeCollectionConverter.cs
- OdbcCommandBuilder.cs
- TimeZoneNotFoundException.cs
- SqlWebEventProvider.cs
- DesignTimeParseData.cs
- NTAccount.cs
- TextEffectCollection.cs
- GcSettings.cs
- NativeMethods.cs
- WebMethodAttribute.cs
- ProcessThread.cs
- httpserverutility.cs
- AssociatedControlConverter.cs
- TrackingParameters.cs
- Converter.cs
- ComponentCommands.cs
- UrlRoutingHandler.cs
- DbMetaDataColumnNames.cs
- ObjectQuery.cs
- AuthenticationManager.cs
- ConfigurationStrings.cs
- OracleTimeSpan.cs
- SqlCommandSet.cs
- LineServicesCallbacks.cs
- TableDetailsCollection.cs
- PointConverter.cs
- DesignTimeVisibleAttribute.cs
- FamilyTypefaceCollection.cs
- HostedTransportConfigurationManager.cs
- Keywords.cs
- TextBox.cs
- DataGridViewRowPostPaintEventArgs.cs
- SqlDataSourceSummaryPanel.cs
- SqlConnectionPoolProviderInfo.cs
- PenThread.cs
- ResolvedKeyFrameEntry.cs
- RenderTargetBitmap.cs
- DiagnosticsConfiguration.cs
- CallbackHandler.cs
- MailAddressParser.cs
- UserControlCodeDomTreeGenerator.cs
- ReaderWriterLockWrapper.cs
- Mutex.cs
- TemplateLookupAction.cs
- Transactions.cs
- TypeListConverter.cs
- _HTTPDateParse.cs
- OrderByQueryOptionExpression.cs
- RedistVersionInfo.cs
- FormsAuthenticationTicket.cs
- MasterPageParser.cs
- DelegateTypeInfo.cs
- Geometry.cs
- DescendentsWalker.cs
- ValueSerializerAttribute.cs
- TcpClientSocketManager.cs
- _Events.cs
- QueryGeneratorBase.cs
- XmlAnyAttributeAttribute.cs
- GcHandle.cs
- ParsedAttributeCollection.cs
- Atom10ItemFormatter.cs
- Message.cs