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
- XamlPointCollectionSerializer.cs
- ThousandthOfEmRealDoubles.cs
- BindUriHelper.cs
- SqlReferenceCollection.cs
- Hyperlink.cs
- MatrixConverter.cs
- BoundingRectTracker.cs
- _IPv6Address.cs
- ErrorEventArgs.cs
- UIElement3D.cs
- TrustLevelCollection.cs
- UnmanagedMarshal.cs
- ProjectionRewriter.cs
- CompModSwitches.cs
- PriorityBinding.cs
- DoubleStorage.cs
- RepeatButton.cs
- WorkItem.cs
- SafeEventLogWriteHandle.cs
- ArrangedElementCollection.cs
- PointLightBase.cs
- MarkupExtensionParser.cs
- URLString.cs
- UriTemplateEquivalenceComparer.cs
- CounterSample.cs
- ValidationPropertyAttribute.cs
- BinaryObjectReader.cs
- CodeCatchClause.cs
- Keywords.cs
- JpegBitmapEncoder.cs
- HostingEnvironment.cs
- StaticFileHandler.cs
- BitmapEffectrendercontext.cs
- AbstractSvcMapFileLoader.cs
- UnmanagedMarshal.cs
- FilterableData.cs
- DataGridViewIntLinkedList.cs
- AutomationPatternInfo.cs
- ExpressionTextBoxAutomationPeer.cs
- TextBoxBase.cs
- DesignerActionList.cs
- Compiler.cs
- NavigationService.cs
- TextEditorMouse.cs
- DeviceSpecificChoice.cs
- Line.cs
- StringUtil.cs
- FullTextBreakpoint.cs
- QueryInterceptorAttribute.cs
- RepeatButtonAutomationPeer.cs
- EditingCoordinator.cs
- Itemizer.cs
- ListViewGroupItemCollection.cs
- DesignTimeParseData.cs
- RectangleF.cs
- ExpandableObjectConverter.cs
- RuleSetBrowserDialog.cs
- ClipboardData.cs
- WebControlAdapter.cs
- CodeGeneratorOptions.cs
- CheckBox.cs
- AssemblyHash.cs
- QilInvokeLateBound.cs
- SafeArrayTypeMismatchException.cs
- DynamicRouteExpression.cs
- SmiEventSink_DeferedProcessing.cs
- Int32CollectionValueSerializer.cs
- PingReply.cs
- PropertyGridView.cs
- WebPartDisplayModeCancelEventArgs.cs
- PageCodeDomTreeGenerator.cs
- TimelineGroup.cs
- ToolStripItemDataObject.cs
- PanelContainerDesigner.cs
- FrameworkTextComposition.cs
- Vector3DCollection.cs
- WaitForChangedResult.cs
- UnknownBitmapEncoder.cs
- SQLByte.cs
- ActivityStatusChangeEventArgs.cs
- StrongNameUtility.cs
- ZipIOCentralDirectoryBlock.cs
- ContainerSelectorGlyph.cs
- RequestTimeoutManager.cs
- ObjectHelper.cs
- GradientSpreadMethodValidation.cs
- IdentityNotMappedException.cs
- RouteValueExpressionBuilder.cs
- AssemblyInfo.cs
- Directory.cs
- TextServicesContext.cs
- Light.cs
- Subtract.cs
- OdbcFactory.cs
- SelectedGridItemChangedEvent.cs
- SuppressMergeCheckAttribute.cs
- xml.cs
- XmlArrayItemAttributes.cs
- Convert.cs
- OdbcConnectionHandle.cs