Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MimeAnyImporter.cs
- Point3DAnimation.cs
- IFlowDocumentViewer.cs
- SqlGatherConsumedAliases.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CaseStatement.cs
- ColorDialog.cs
- DataGridViewCellStyle.cs
- Helper.cs
- FontFaceLayoutInfo.cs
- SystemIPv6InterfaceProperties.cs
- ToolboxBitmapAttribute.cs
- ContextBase.cs
- ApplicationTrust.cs
- EncoderParameter.cs
- odbcmetadatacolumnnames.cs
- WebCategoryAttribute.cs
- UserPersonalizationStateInfo.cs
- COM2EnumConverter.cs
- HttpCapabilitiesBase.cs
- COM2IDispatchConverter.cs
- ping.cs
- CheckBoxList.cs
- EntityConnection.cs
- XAMLParseException.cs
- DocumentCollection.cs
- SqlLiftWhereClauses.cs
- StrongNameMembershipCondition.cs
- DbConnectionInternal.cs
- HotSpotCollection.cs
- CommentAction.cs
- Native.cs
- TargetConverter.cs
- DeflateStream.cs
- ThousandthOfEmRealPoints.cs
- CodeChecksumPragma.cs
- ProvidePropertyAttribute.cs
- ContactManager.cs
- MethodBody.cs
- UTF7Encoding.cs
- AbandonedMutexException.cs
- Cursor.cs
- XamlTreeBuilderBamlRecordWriter.cs
- MTConfigUtil.cs
- XhtmlBasicPageAdapter.cs
- XslAstAnalyzer.cs
- ChannelDispatcher.cs
- MultiBinding.cs
- EntityDataSourceColumn.cs
- UserControl.cs
- KeyGestureConverter.cs
- PaintEvent.cs
- DataPagerCommandEventArgs.cs
- BamlWriter.cs
- ClrPerspective.cs
- Content.cs
- ImageButton.cs
- KeyManager.cs
- NamespaceDecl.cs
- AspNetSynchronizationContext.cs
- InternalCache.cs
- CompilationRelaxations.cs
- SQLString.cs
- XmlSchemaIdentityConstraint.cs
- ListBase.cs
- XmlC14NWriter.cs
- QilTypeChecker.cs
- SemanticBasicElement.cs
- WindowsStartMenu.cs
- WebPartsPersonalizationAuthorization.cs
- ObjectViewQueryResultData.cs
- ApplicationTrust.cs
- ColorPalette.cs
- ListViewPagedDataSource.cs
- PtsCache.cs
- MdiWindowListStrip.cs
- SqlDependencyListener.cs
- DataGridrowEditEndingEventArgs.cs
- TextEvent.cs
- CompilerGeneratedAttribute.cs
- MultiTrigger.cs
- SerialErrors.cs
- OracleParameter.cs
- DataSourceXmlSerializer.cs
- Permission.cs
- SafeCryptoHandles.cs
- Path.cs
- LinqDataSourceStatusEventArgs.cs
- DesignerValidationSummaryAdapter.cs
- XmlSchemaAnnotated.cs
- TextControlDesigner.cs
- BitStream.cs
- SetStoryboardSpeedRatio.cs
- MembershipValidatePasswordEventArgs.cs
- StringUtil.cs
- StructuredTypeEmitter.cs
- xmlsaver.cs
- MdImport.cs
- SqlDataSourceConfigureFilterForm.cs
- StrongNamePublicKeyBlob.cs