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
- UnmanagedHandle.cs
- SystemBrushes.cs
- TdsValueSetter.cs
- CircleHotSpot.cs
- DesignerTransaction.cs
- InheritablePropertyChangeInfo.cs
- TreeViewItemAutomationPeer.cs
- securitycriticaldataformultiplegetandset.cs
- VisualStates.cs
- DataSvcMapFileSerializer.cs
- Util.cs
- DependencyPropertyDescriptor.cs
- TabControlEvent.cs
- FakeModelPropertyImpl.cs
- MimeParameter.cs
- Italic.cs
- Pair.cs
- PartialCachingControl.cs
- ClientApiGenerator.cs
- AsyncContentLoadedEventArgs.cs
- BuilderPropertyEntry.cs
- OpenTypeCommon.cs
- RuntimeConfig.cs
- XmlMtomWriter.cs
- X509ServiceCertificateAuthentication.cs
- ButtonChrome.cs
- xmlfixedPageInfo.cs
- ProcessModelInfo.cs
- XmlSchemaException.cs
- Logging.cs
- ProbeDuplex11AsyncResult.cs
- BuiltInExpr.cs
- FeatureSupport.cs
- SkipQueryOptionExpression.cs
- UnsafeCollabNativeMethods.cs
- ZipPackagePart.cs
- SessionStateContainer.cs
- DataBindingExpressionBuilder.cs
- _Events.cs
- Vector3DIndependentAnimationStorage.cs
- PeerTransportElement.cs
- Typeface.cs
- UTF7Encoding.cs
- SerializationEventsCache.cs
- SQLByte.cs
- SpellerStatusTable.cs
- PathFigure.cs
- ProtocolsConfigurationEntry.cs
- DataChangedEventManager.cs
- RenderingBiasValidation.cs
- LoginStatusDesigner.cs
- ResourceDictionary.cs
- ListViewDataItem.cs
- NotFiniteNumberException.cs
- FormViewDeleteEventArgs.cs
- InternalControlCollection.cs
- HtmlTable.cs
- UnsafeNativeMethods.cs
- webproxy.cs
- SerialPinChanges.cs
- FusionWrap.cs
- WebPartConnectionsCancelVerb.cs
- CallbackValidator.cs
- CodeMemberEvent.cs
- MultiDataTrigger.cs
- TemplatedMailWebEventProvider.cs
- WrappingXamlSchemaContext.cs
- BaseCollection.cs
- InkCanvasSelection.cs
- StrongTypingException.cs
- GorillaCodec.cs
- TextEffectCollection.cs
- IdentityElement.cs
- Style.cs
- RotateTransform3D.cs
- Geometry3D.cs
- ConstrainedDataObject.cs
- ReachIDocumentPaginatorSerializer.cs
- SplitterCancelEvent.cs
- Int32AnimationUsingKeyFrames.cs
- AppDomainProtocolHandler.cs
- PathFigure.cs
- EntityDataSourceWrapperCollection.cs
- nulltextcontainer.cs
- ProfilePropertyMetadata.cs
- Geometry.cs
- SortAction.cs
- ControlValuePropertyAttribute.cs
- ListViewHitTestInfo.cs
- DocumentViewerBaseAutomationPeer.cs
- AppDomainProtocolHandler.cs
- WebPartAuthorizationEventArgs.cs
- LocalValueEnumerator.cs
- EditableRegion.cs
- SecurityPolicySection.cs
- VisualBrush.cs
- SQLBoolean.cs
- SafeNativeMethodsCLR.cs
- XmlReflectionImporter.cs
- ConfigXmlText.cs