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
- Codec.cs
- HttpResponseWrapper.cs
- XmlSigningNodeWriter.cs
- TextPenaltyModule.cs
- UiaCoreTypesApi.cs
- activationcontext.cs
- Parser.cs
- PersistChildrenAttribute.cs
- TypeSystem.cs
- LinkLabel.cs
- MbpInfo.cs
- CallbackException.cs
- PackageController.cs
- RepeatInfo.cs
- ZipIOExtraFieldZip64Element.cs
- RenderContext.cs
- SQLInt32Storage.cs
- UInt32.cs
- ObjectViewQueryResultData.cs
- Win32SafeHandles.cs
- HotCommands.cs
- ExcCanonicalXml.cs
- MembershipUser.cs
- MimeParameters.cs
- ProcessInfo.cs
- TargetParameterCountException.cs
- ResolveNameEventArgs.cs
- SoapParser.cs
- IisTraceListener.cs
- _BaseOverlappedAsyncResult.cs
- EntityType.cs
- Italic.cs
- DbModificationClause.cs
- HtmlPhoneCallAdapter.cs
- DataPagerField.cs
- ConfigErrorGlyph.cs
- Soap.cs
- WindowsFormsSynchronizationContext.cs
- PointHitTestResult.cs
- linebase.cs
- ProfileGroupSettingsCollection.cs
- HandleCollector.cs
- UnsupportedPolicyOptionsException.cs
- MultiDataTrigger.cs
- Margins.cs
- EntitySetDataBindingList.cs
- SwitchCase.cs
- DesignerTextViewAdapter.cs
- StringBuilder.cs
- BrowserCapabilitiesFactory35.cs
- TemplateControlParser.cs
- StaticSiteMapProvider.cs
- MenuScrollingVisibilityConverter.cs
- RectangleGeometry.cs
- DetailsViewCommandEventArgs.cs
- CodeLinePragma.cs
- localization.cs
- ZipFileInfoCollection.cs
- SqlClientWrapperSmiStreamChars.cs
- ClockGroup.cs
- TabItemAutomationPeer.cs
- InputMethodStateChangeEventArgs.cs
- DataViewListener.cs
- UnhandledExceptionEventArgs.cs
- Vertex.cs
- ContentPlaceHolder.cs
- PrinterSettings.cs
- ZoneMembershipCondition.cs
- HttpClientCertificate.cs
- ColumnCollectionEditor.cs
- ParameterEditorUserControl.cs
- XmlUtf8RawTextWriter.cs
- Variant.cs
- BaseTemplateBuildProvider.cs
- ScriptDescriptor.cs
- DefinitionUpdate.cs
- EllipseGeometry.cs
- PointCollectionValueSerializer.cs
- CommandBinding.cs
- GenericEnumerator.cs
- AlignmentYValidation.cs
- LoginNameDesigner.cs
- Math.cs
- DesignerForm.cs
- GroupBox.cs
- TextSimpleMarkerProperties.cs
- PeerNearMe.cs
- SortAction.cs
- Aggregates.cs
- COM2PropertyDescriptor.cs
- BufferModeSettings.cs
- CustomValidator.cs
- CommunicationObjectFaultedException.cs
- CapabilitiesSection.cs
- StorageMappingItemLoader.cs
- ScanQueryOperator.cs
- OracleEncoding.cs
- Decorator.cs
- Restrictions.cs
- DBCommand.cs