Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / HttpListenerException.cs / 1305376 / 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
- _ScatterGatherBuffers.cs
- TraceSection.cs
- ThicknessAnimationUsingKeyFrames.cs
- WebPartConnectionsCloseVerb.cs
- CodeParameterDeclarationExpression.cs
- FontFamily.cs
- XmlAnyElementAttributes.cs
- SafeRightsManagementSessionHandle.cs
- BlurEffect.cs
- TemplatedWizardStep.cs
- RectangleF.cs
- FlowDocumentPage.cs
- PersonalizationDictionary.cs
- WebSysDisplayNameAttribute.cs
- Parser.cs
- HtmlElementEventArgs.cs
- MenuItemAutomationPeer.cs
- FormatConvertedBitmap.cs
- CodeTypeReferenceCollection.cs
- ActivityInstance.cs
- CompilerError.cs
- ReflectionUtil.cs
- HandlerWithFactory.cs
- OleTxTransaction.cs
- PartialCachingAttribute.cs
- EditorAttribute.cs
- ColumnWidthChangingEvent.cs
- BulletChrome.cs
- PkcsMisc.cs
- DataControlImageButton.cs
- BindingExpression.cs
- TemplateParser.cs
- CheckBoxBaseAdapter.cs
- XmlDeclaration.cs
- HttpStreamFormatter.cs
- GridViewSelectEventArgs.cs
- DoubleKeyFrameCollection.cs
- DesignerUtility.cs
- QueryOperationResponseOfT.cs
- ObjectIDGenerator.cs
- TreeNodeStyleCollection.cs
- ControlUtil.cs
- RuntimeEnvironment.cs
- DesignerActionListCollection.cs
- BufferedStream2.cs
- MessageEnumerator.cs
- ManagementClass.cs
- SqlDataSource.cs
- Attributes.cs
- WizardStepBase.cs
- BitmapEffectGeneralTransform.cs
- DataGridColumn.cs
- PackageDigitalSignature.cs
- Thickness.cs
- DependencyObject.cs
- ADConnectionHelper.cs
- Update.cs
- WebPartConnectionsEventArgs.cs
- IChannel.cs
- TransactionManager.cs
- MultiTrigger.cs
- AssertFilter.cs
- VBIdentifierName.cs
- RayMeshGeometry3DHitTestResult.cs
- CryptoApi.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CultureData.cs
- RawStylusActions.cs
- WebZone.cs
- ReplyChannelAcceptor.cs
- OdbcConnectionStringbuilder.cs
- UnmanagedMemoryStream.cs
- RedBlackList.cs
- Html32TextWriter.cs
- FlowDecision.cs
- SiteMapDataSource.cs
- FilteredDataSetHelper.cs
- ValidationError.cs
- XmlUtil.cs
- ASCIIEncoding.cs
- CustomValidator.cs
- LinkArea.cs
- ScriptModule.cs
- XamlToRtfWriter.cs
- SQLResource.cs
- InputBuffer.cs
- MenuRendererStandards.cs
- CompatibleComparer.cs
- PropertyValue.cs
- Border.cs
- RuntimeResourceSet.cs
- CompilationAssemblyInstallComponent.cs
- SafeMemoryMappedFileHandle.cs
- CaseInsensitiveOrdinalStringComparer.cs
- XmlIncludeAttribute.cs
- EvidenceTypeDescriptor.cs
- SqlBooleanizer.cs
- NameValueConfigurationElement.cs
- TrustSection.cs
- MDIWindowDialog.cs