Code:
/ DotNET / DotNET / 8.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
- Condition.cs
- RegionData.cs
- ArrayListCollectionBase.cs
- LinqDataSourceSelectEventArgs.cs
- AddInSegmentDirectoryNotFoundException.cs
- AddInServer.cs
- WebPartVerbsEventArgs.cs
- OracleTimeSpan.cs
- CommonRemoteMemoryBlock.cs
- FactoryRecord.cs
- PageCache.cs
- TextDecorationCollection.cs
- CustomWebEventKey.cs
- Single.cs
- Rect.cs
- ServiceCredentialsElement.cs
- CallSiteHelpers.cs
- Misc.cs
- SqlCrossApplyToCrossJoin.cs
- Compensation.cs
- SubMenuStyleCollection.cs
- Currency.cs
- ComboBoxHelper.cs
- WebScriptEnablingBehavior.cs
- SortDescription.cs
- VectorKeyFrameCollection.cs
- LocationSectionRecord.cs
- VisualStyleTypesAndProperties.cs
- AxisAngleRotation3D.cs
- TextTreeTextBlock.cs
- Parser.cs
- LeaseManager.cs
- PropertyMetadata.cs
- DbExpressionVisitor.cs
- LinqDataSourceUpdateEventArgs.cs
- MatrixAnimationUsingKeyFrames.cs
- ResourceDescriptionAttribute.cs
- RSACryptoServiceProvider.cs
- UserControl.cs
- PropertyChangingEventArgs.cs
- StructuralType.cs
- MachineKeySection.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ItemCheckedEvent.cs
- WebPartEventArgs.cs
- EdmMember.cs
- LinqDataSourceEditData.cs
- DataSourceXmlClassAttribute.cs
- DefaultAssemblyResolver.cs
- Pkcs7Signer.cs
- Privilege.cs
- AttributeCollection.cs
- SamlDelegatingWriter.cs
- VisualStateManager.cs
- HostProtectionPermission.cs
- EventsTab.cs
- VectorCollection.cs
- OdbcEnvironment.cs
- OverlappedAsyncResult.cs
- BitmapVisualManager.cs
- Point3DCollection.cs
- SqlDelegatedTransaction.cs
- StringUtil.cs
- AssemblyBuilder.cs
- XmlTextEncoder.cs
- WebConvert.cs
- OleDbReferenceCollection.cs
- MissingMemberException.cs
- WebPartMenu.cs
- EventProviderTraceListener.cs
- ToolStripHighContrastRenderer.cs
- WindowVisualStateTracker.cs
- CheckBoxAutomationPeer.cs
- FileLevelControlBuilderAttribute.cs
- baseaxisquery.cs
- ArgumentValueSerializer.cs
- CompositeDesignerAccessibleObject.cs
- Rijndael.cs
- SwitchElementsCollection.cs
- AdjustableArrowCap.cs
- FormsAuthenticationUserCollection.cs
- SmtpLoginAuthenticationModule.cs
- XmlTextEncoder.cs
- ProxyAssemblyNotLoadedException.cs
- ServiceObjectContainer.cs
- ExtendedPropertyDescriptor.cs
- Point.cs
- AssemblyBuilder.cs
- ZipIOCentralDirectoryBlock.cs
- WindowsProgressbar.cs
- DataTemplateSelector.cs
- HtmlTernaryTree.cs
- EasingFunctionBase.cs
- GetWorkflowTree.cs
- SQLUtility.cs
- AbstractSvcMapFileLoader.cs
- WebEventTraceProvider.cs
- DataGridViewCellStyle.cs
- XmlSchemaSearchPattern.cs
- DependencyPropertyKey.cs