Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SiteMapPath.cs
- PropertySegmentSerializer.cs
- WebBrowserBase.cs
- WindowsSpinner.cs
- ADConnectionHelper.cs
- ClassValidator.cs
- DeobfuscatingStream.cs
- SerializationSectionGroup.cs
- ErrorTableItemStyle.cs
- DataKeyArray.cs
- DelimitedListTraceListener.cs
- WmpBitmapDecoder.cs
- DataGridViewRowPrePaintEventArgs.cs
- cookie.cs
- SettingsContext.cs
- SqlMethods.cs
- CommandHelper.cs
- FontInfo.cs
- ListenerElementsCollection.cs
- formatter.cs
- LabelEditEvent.cs
- NameGenerator.cs
- MonitorWrapper.cs
- BindingMemberInfo.cs
- ObjectTokenCategory.cs
- HtmlHead.cs
- WebBrowserNavigatingEventHandler.cs
- DBSchemaRow.cs
- ModuleConfigurationInfo.cs
- NamespaceMapping.cs
- QilTypeChecker.cs
- WebAdminConfigurationHelper.cs
- MethodRental.cs
- InternalTypeHelper.cs
- DataRelationPropertyDescriptor.cs
- SerialReceived.cs
- CodeTypeReference.cs
- Subtree.cs
- DropDownButton.cs
- SecurityTokenValidationException.cs
- SQLMembershipProvider.cs
- securitycriticaldataClass.cs
- ObjectDataSourceStatusEventArgs.cs
- __Filters.cs
- WindowsAuthenticationEventArgs.cs
- SafeReversePInvokeHandle.cs
- CorePropertiesFilter.cs
- HandleCollector.cs
- JavaScriptSerializer.cs
- FrameworkReadOnlyPropertyMetadata.cs
- TdsEnums.cs
- SqlMethodAttribute.cs
- ModuleConfigurationInfo.cs
- HttpDebugHandler.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlTextWriter.cs
- File.cs
- FrameworkTemplate.cs
- CriticalHandle.cs
- TdsParserStateObject.cs
- TableLayoutStyleCollection.cs
- UIntPtr.cs
- AdPostCacheSubstitution.cs
- StoreAnnotationsMap.cs
- GregorianCalendar.cs
- ReadOnlyState.cs
- GCHandleCookieTable.cs
- SerialStream.cs
- MethodToken.cs
- Visual3DCollection.cs
- DefinitionBase.cs
- ADMembershipUser.cs
- OperationDescriptionCollection.cs
- DocumentXPathNavigator.cs
- SolidBrush.cs
- SecurityState.cs
- PropertyRef.cs
- DataGridViewCellValidatingEventArgs.cs
- ObjectStateEntryDbDataRecord.cs
- SystemUnicastIPAddressInformation.cs
- assertwrapper.cs
- DocumentOrderComparer.cs
- HostExecutionContextManager.cs
- ButtonAutomationPeer.cs
- RegexTree.cs
- HashHelper.cs
- RowUpdatedEventArgs.cs
- DropDownHolder.cs
- WebPartManagerInternals.cs
- MatrixAnimationUsingKeyFrames.cs
- UiaCoreTypesApi.cs
- MsmqIntegrationBinding.cs
- _ServiceNameStore.cs
- Pipe.cs
- TextDecorations.cs
- PolygonHotSpot.cs
- SqlRetyper.cs
- ToolStripComboBox.cs
- IBuiltInEvidence.cs
- RegexCapture.cs