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
- IncrementalReadDecoders.cs
- SafeArrayTypeMismatchException.cs
- WhiteSpaceTrimStringConverter.cs
- LocationSectionRecord.cs
- FreezableOperations.cs
- DispatchChannelSink.cs
- SerializationTrace.cs
- CachedBitmap.cs
- RectAnimationBase.cs
- WSHttpTransportSecurityElement.cs
- ChangePasswordDesigner.cs
- RawAppCommandInputReport.cs
- DataServiceQueryProvider.cs
- ChildChangedEventArgs.cs
- ThreadStartException.cs
- CompiledXpathExpr.cs
- XomlCompilerParameters.cs
- ParameterCollectionEditor.cs
- CounterCreationDataCollection.cs
- SystemFonts.cs
- FuncTypeConverter.cs
- RewritingSimplifier.cs
- Visual.cs
- CodeArgumentReferenceExpression.cs
- Duration.cs
- HttpInputStream.cs
- BulletedListEventArgs.cs
- DataKey.cs
- TTSVoice.cs
- DelayedRegex.cs
- CompensatableTransactionScopeActivityDesigner.cs
- CodeMemberEvent.cs
- EntityDesignPluralizationHandler.cs
- QilStrConcat.cs
- Privilege.cs
- Decoder.cs
- Helpers.cs
- Form.cs
- EncryptedKeyIdentifierClause.cs
- PresentationAppDomainManager.cs
- TypedDatasetGenerator.cs
- DataGridViewLinkCell.cs
- TraceLog.cs
- NameValueConfigurationCollection.cs
- CacheRequest.cs
- QueueProcessor.cs
- SafeLibraryHandle.cs
- PresentationAppDomainManager.cs
- CollectionView.cs
- WebPartDisplayModeCancelEventArgs.cs
- HttpRuntimeSection.cs
- DateTimeUtil.cs
- WpfPayload.cs
- FormViewDeleteEventArgs.cs
- NestedContainer.cs
- DataPointer.cs
- DbConnectionPoolIdentity.cs
- ProjectionPruner.cs
- SqlDataSourceCustomCommandEditor.cs
- XXXOnTypeBuilderInstantiation.cs
- XPathBuilder.cs
- PeerApplication.cs
- Rules.cs
- ServiceHostFactory.cs
- LabelEditEvent.cs
- Expression.cs
- LayoutInformation.cs
- Imaging.cs
- XPathAncestorIterator.cs
- TextRangeSerialization.cs
- RandomNumberGenerator.cs
- ExpressionEditorAttribute.cs
- FieldBuilder.cs
- XamlPoint3DCollectionSerializer.cs
- OdbcParameterCollection.cs
- HasCopySemanticsAttribute.cs
- QilDataSource.cs
- OpenTypeCommon.cs
- CLSCompliantAttribute.cs
- Semaphore.cs
- IPHostEntry.cs
- DataGridViewCellStyleConverter.cs
- ObjectCache.cs
- ChtmlCalendarAdapter.cs
- WebPartEditorApplyVerb.cs
- WorkflowValidationFailedException.cs
- LinqDataSourceContextData.cs
- Effect.cs
- TraceListeners.cs
- HwndStylusInputProvider.cs
- CompilerScopeManager.cs
- SQLUtility.cs
- CallContext.cs
- HttpContext.cs
- Opcode.cs
- FamilyCollection.cs
- PreparingEnlistment.cs
- XmlCustomFormatter.cs
- QilVisitor.cs
- TemplatedWizardStep.cs