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
- PlacementWorkspace.cs
- PropertyMetadata.cs
- HtmlShim.cs
- QueueSurrogate.cs
- DataDesignUtil.cs
- StackOverflowException.cs
- FontFamily.cs
- SymLanguageType.cs
- ValidationManager.cs
- WebPartVerb.cs
- LoginView.cs
- QilUnary.cs
- FormViewDeletedEventArgs.cs
- PointAnimationUsingPath.cs
- XamlTemplateSerializer.cs
- MouseEventArgs.cs
- SmtpReplyReader.cs
- XPathAxisIterator.cs
- WebRequestModuleElementCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- AsmxEndpointPickerExtension.cs
- OverflowException.cs
- exports.cs
- SystemGatewayIPAddressInformation.cs
- ArraySubsetEnumerator.cs
- XmlDocumentSerializer.cs
- QuaternionRotation3D.cs
- WebPartTransformer.cs
- SchemaImporterExtensionElementCollection.cs
- DesignerAdRotatorAdapter.cs
- TTSEngineTypes.cs
- JapaneseLunisolarCalendar.cs
- GenericIdentity.cs
- EventPropertyMap.cs
- Selector.cs
- TypeForwardedToAttribute.cs
- GeneralTransform3DGroup.cs
- VirtualPathUtility.cs
- SchemaSetCompiler.cs
- OnOperation.cs
- CharConverter.cs
- MenuItem.cs
- ListViewDeleteEventArgs.cs
- StatusBarItemAutomationPeer.cs
- PassportIdentity.cs
- printdlgexmarshaler.cs
- SiteMapProvider.cs
- TypeLoadException.cs
- PasswordDeriveBytes.cs
- SamlAttributeStatement.cs
- ViewBox.cs
- ClientFormsAuthenticationMembershipProvider.cs
- ResourceDictionaryCollection.cs
- FixUp.cs
- BamlRecordHelper.cs
- PathSegmentCollection.cs
- PeerCollaboration.cs
- SoapRpcMethodAttribute.cs
- PrimitiveXmlSerializers.cs
- DefaultTraceListener.cs
- DbConvert.cs
- Transform.cs
- DoubleConverter.cs
- Context.cs
- MachineKeySection.cs
- FormatterServices.cs
- FontSizeConverter.cs
- CapabilitiesSection.cs
- DragSelectionMessageFilter.cs
- ProcessProtocolHandler.cs
- WindowsListView.cs
- FixedSOMImage.cs
- LinkArea.cs
- _Events.cs
- TextElementCollectionHelper.cs
- DataGridViewSelectedRowCollection.cs
- PerformanceCounterManager.cs
- PageAsyncTask.cs
- HtmlEncodedRawTextWriter.cs
- Mouse.cs
- FontDriver.cs
- Pair.cs
- KeyValuePairs.cs
- MeshGeometry3D.cs
- Visitors.cs
- InvalidateEvent.cs
- BookmarkEventArgs.cs
- ColorConvertedBitmap.cs
- TagPrefixCollection.cs
- LayeredChannelFactory.cs
- WindowsFormsDesignerOptionService.cs
- NonSerializedAttribute.cs
- Int32Rect.cs
- MD5Cng.cs
- TagMapInfo.cs
- InvokeProviderWrapper.cs
- PackageDigitalSignature.cs
- CustomAttributeBuilder.cs
- _AutoWebProxyScriptEngine.cs
- KeyValuePairs.cs