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
- PaintValueEventArgs.cs
- RegexGroup.cs
- ApplicationDirectoryMembershipCondition.cs
- DataGridCheckBoxColumn.cs
- TableRow.cs
- WrappedIUnknown.cs
- TypefaceCollection.cs
- CalloutQueueItem.cs
- CommentAction.cs
- Focus.cs
- ObjectResult.cs
- NativeStructs.cs
- WarningException.cs
- LocalizationParserHooks.cs
- WeakReference.cs
- CounterSampleCalculator.cs
- COSERVERINFO.cs
- WebException.cs
- _LazyAsyncResult.cs
- InfoCardTraceRecord.cs
- MediaScriptCommandRoutedEventArgs.cs
- XmlAttributeProperties.cs
- SoapObjectReader.cs
- DoubleCollection.cs
- RectangleHotSpot.cs
- ADConnectionHelper.cs
- PaginationProgressEventArgs.cs
- InfoCardKeyedHashAlgorithm.cs
- shaperfactoryquerycachekey.cs
- MailSettingsSection.cs
- DynamicPhysicalDiscoSearcher.cs
- Publisher.cs
- FixedTextView.cs
- ISAPIApplicationHost.cs
- TypographyProperties.cs
- ReadOnlyDataSource.cs
- TextTreeFixupNode.cs
- Signature.cs
- SqlCrossApplyToCrossJoin.cs
- GenericNameHandler.cs
- DataControlPagerLinkButton.cs
- ReadWriteObjectLock.cs
- SerializationSectionGroup.cs
- InstanceKeyCompleteException.cs
- ISessionStateStore.cs
- EntityKeyElement.cs
- TableRowCollection.cs
- SecurityUniqueId.cs
- JapaneseLunisolarCalendar.cs
- SamlSecurityToken.cs
- ListBase.cs
- DynamicDataResources.Designer.cs
- CodeAttributeDeclaration.cs
- SafeWaitHandle.cs
- TaskHelper.cs
- IndependentlyAnimatedPropertyMetadata.cs
- CoTaskMemHandle.cs
- SqlCommandBuilder.cs
- RectKeyFrameCollection.cs
- _DigestClient.cs
- ManifestResourceInfo.cs
- ZipFileInfoCollection.cs
- SQLSingleStorage.cs
- MessageDirection.cs
- ToolStripHighContrastRenderer.cs
- DSACryptoServiceProvider.cs
- ContextMenuStripActionList.cs
- Pair.cs
- XPathArrayIterator.cs
- ClientViaElement.cs
- DocumentReference.cs
- CollectionBuilder.cs
- FormsAuthenticationCredentials.cs
- Number.cs
- FloaterParagraph.cs
- ResizeGrip.cs
- ReferencedAssembly.cs
- CursorInteropHelper.cs
- DuplexClientBase.cs
- HtmlInputControl.cs
- IteratorDescriptor.cs
- CapabilitiesSection.cs
- PrinterUnitConvert.cs
- PersonalizationDictionary.cs
- DetailsViewUpdatedEventArgs.cs
- WebPartTransformerAttribute.cs
- HyperlinkAutomationPeer.cs
- AssociationProvider.cs
- TaiwanLunisolarCalendar.cs
- HttpChannelListener.cs
- StrokeDescriptor.cs
- Authorization.cs
- Codec.cs
- BeginStoryboard.cs
- DrawListViewColumnHeaderEventArgs.cs
- DiscoveryServerProtocol.cs
- WizardDesigner.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- CultureSpecificCharacterBufferRange.cs
- SpecialNameAttribute.cs