Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FloaterParaClient.cs
- MsmqUri.cs
- Color.cs
- SendMailErrorEventArgs.cs
- XPathBuilder.cs
- BinaryKeyIdentifierClause.cs
- StyleSheetRefUrlEditor.cs
- LogRestartAreaEnumerator.cs
- ListenerHandler.cs
- IPEndPoint.cs
- EntryIndex.cs
- InternalConfigRoot.cs
- ImageMap.cs
- DataTemplate.cs
- WebPartTransformer.cs
- WinFormsComponentEditor.cs
- DetailsViewInsertedEventArgs.cs
- X509SecurityToken.cs
- ScalarConstant.cs
- TypeDelegator.cs
- CalendarDesigner.cs
- CellIdBoolean.cs
- SerializerWriterEventHandlers.cs
- GeneratedCodeAttribute.cs
- QilValidationVisitor.cs
- DrawingImage.cs
- InstanceOwnerException.cs
- SystemDropShadowChrome.cs
- BitStream.cs
- OledbConnectionStringbuilder.cs
- TreeNodeEventArgs.cs
- Formatter.cs
- RowCache.cs
- IntSecurity.cs
- WebPageTraceListener.cs
- FixedSOMPage.cs
- Lasso.cs
- ObjectContextServiceProvider.cs
- PersonalizationProviderHelper.cs
- TitleStyle.cs
- COM2ExtendedUITypeEditor.cs
- Set.cs
- SystemIPInterfaceProperties.cs
- ObjectFullSpanRewriter.cs
- FileIOPermission.cs
- TextDataBindingHandler.cs
- Semaphore.cs
- StateRuntime.cs
- EntitySqlQueryCacheEntry.cs
- OSFeature.cs
- ProtocolsConfigurationEntry.cs
- altserialization.cs
- TraceHandlerErrorFormatter.cs
- MemberPathMap.cs
- MorphHelper.cs
- XmlComplianceUtil.cs
- EmbeddedMailObject.cs
- TextParaLineResult.cs
- ScriptingAuthenticationServiceSection.cs
- RoleServiceManager.cs
- IncomingWebResponseContext.cs
- GroupAggregateExpr.cs
- _ListenerRequestStream.cs
- __Filters.cs
- SmiConnection.cs
- AdornerHitTestResult.cs
- LightweightEntityWrapper.cs
- LinqDataSourceContextData.cs
- InkCanvas.cs
- ProcessHostServerConfig.cs
- CodeVariableReferenceExpression.cs
- KeyGestureValueSerializer.cs
- MimeTypeMapper.cs
- MetadataCache.cs
- WebProxyScriptElement.cs
- CollectionConverter.cs
- RecordsAffectedEventArgs.cs
- TransformPattern.cs
- DataServiceContext.cs
- StaticTextPointer.cs
- TypeInitializationException.cs
- SystemIPv6InterfaceProperties.cs
- Authorization.cs
- HostingEnvironmentException.cs
- TrackingServices.cs
- StateRuntime.cs
- ReadOnlyPropertyMetadata.cs
- HtmlEncodedRawTextWriter.cs
- ByteStack.cs
- ReadOnlyDictionary.cs
- EpmSyndicationContentSerializer.cs
- TailCallAnalyzer.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ReadOnlyNameValueCollection.cs
- SiteMapDataSource.cs
- WebPartCancelEventArgs.cs
- ChangeToolStripParentVerb.cs
- GradientBrush.cs
- SecurityCriticalDataForSet.cs
- WorkItem.cs