Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridHeaderBorder.cs
- RequiredFieldValidator.cs
- ToolStripManager.cs
- VisualTarget.cs
- TextElement.cs
- _SslSessionsCache.cs
- StringKeyFrameCollection.cs
- GregorianCalendar.cs
- ProviderConnectionPointCollection.cs
- TextServicesContext.cs
- FlowLayoutPanel.cs
- InvalidCastException.cs
- DifferencingCollection.cs
- ButtonBaseAdapter.cs
- TreeBuilder.cs
- ConfigXmlWhitespace.cs
- Mappings.cs
- ObjectStateManager.cs
- UnsafeNativeMethods.cs
- ImageFormatConverter.cs
- CancellationTokenRegistration.cs
- WorkflowMarkupSerializationProvider.cs
- TouchDevice.cs
- DataSourceSelectArguments.cs
- XamlSerializer.cs
- NetTcpBindingCollectionElement.cs
- WebConfigurationHost.cs
- Pen.cs
- BuildManagerHost.cs
- DashStyle.cs
- EqualityComparer.cs
- QueryAsyncResult.cs
- ZipIOExtraFieldPaddingElement.cs
- ExclusiveCanonicalizationTransform.cs
- CollectionViewGroupInternal.cs
- XamlFigureLengthSerializer.cs
- EffectiveValueEntry.cs
- ElementUtil.cs
- CoTaskMemHandle.cs
- AndCondition.cs
- SettingsSection.cs
- SoapProtocolReflector.cs
- PauseStoryboard.cs
- GridViewUpdateEventArgs.cs
- RSAOAEPKeyExchangeFormatter.cs
- OutputCache.cs
- METAHEADER.cs
- UrlAuthFailedErrorFormatter.cs
- XPathException.cs
- WCFModelStrings.Designer.cs
- TemplateControlParser.cs
- CachedCompositeFamily.cs
- _StreamFramer.cs
- WebPageTraceListener.cs
- SignatureHelper.cs
- SerialReceived.cs
- URLAttribute.cs
- BinaryMethodMessage.cs
- EDesignUtil.cs
- EventMappingSettingsCollection.cs
- CodeComment.cs
- BinaryParser.cs
- ReadOnlyAttribute.cs
- Classification.cs
- PanelContainerDesigner.cs
- _FtpDataStream.cs
- SwitchLevelAttribute.cs
- RelationalExpressions.cs
- FontUnit.cs
- WebSysDefaultValueAttribute.cs
- CommandExpr.cs
- And.cs
- XmlEncodedRawTextWriter.cs
- AdornerDecorator.cs
- AssemblyCollection.cs
- CodeMemberMethod.cs
- TemplateComponentConnector.cs
- DataBindingList.cs
- MenuCommands.cs
- PropertyHelper.cs
- SimpleFieldTemplateFactory.cs
- AddInIpcChannel.cs
- NameScope.cs
- TypeViewSchema.cs
- CommandLibraryHelper.cs
- SmtpSection.cs
- ByeOperationAsyncResult.cs
- ToolStripGrip.cs
- AttributeEmitter.cs
- ChangeTracker.cs
- ContextBase.cs
- ComponentSerializationService.cs
- ColumnResizeAdorner.cs
- ParameterModifier.cs
- ComplexBindingPropertiesAttribute.cs
- SpotLight.cs
- FullTextLine.cs
- EndpointDiscoveryMetadataCD1.cs
- NewItemsContextMenuStrip.cs
- FontStretch.cs