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
- TextSegment.cs
- ResizeBehavior.cs
- Stroke.cs
- ProfileInfo.cs
- ParagraphResult.cs
- CodeTryCatchFinallyStatement.cs
- DbModificationCommandTree.cs
- SEHException.cs
- ButtonField.cs
- Item.cs
- DriveInfo.cs
- Hyperlink.cs
- ApplicationContext.cs
- SemanticResultKey.cs
- DataControlCommands.cs
- DesignerSerializationVisibilityAttribute.cs
- SchemaManager.cs
- QueryCacheManager.cs
- XsltException.cs
- HtmlContainerControl.cs
- DocumentStream.cs
- StringUtil.cs
- OperationResponse.cs
- ClientRuntimeConfig.cs
- WebPartEditorOkVerb.cs
- OleDbEnumerator.cs
- HitTestResult.cs
- DataObjectPastingEventArgs.cs
- OracleParameter.cs
- GridViewColumnCollectionChangedEventArgs.cs
- UserPreferenceChangedEventArgs.cs
- FileDetails.cs
- TimeStampChecker.cs
- SqlProviderServices.cs
- PermissionListSet.cs
- HandlerWithFactory.cs
- CapabilitiesState.cs
- CollectionConverter.cs
- XmlArrayAttribute.cs
- ValueChangedEventManager.cs
- XmlSchemaAll.cs
- DataGridViewRowsAddedEventArgs.cs
- XmlLanguageConverter.cs
- CacheSection.cs
- TextEmbeddedObject.cs
- SessionSwitchEventArgs.cs
- SoapReflectionImporter.cs
- DbQueryCommandTree.cs
- OutputCacheEntry.cs
- BaseInfoTable.cs
- InheritedPropertyChangedEventArgs.cs
- PickDesigner.xaml.cs
- ObservableDictionary.cs
- WebBrowserNavigatingEventHandler.cs
- ErrorStyle.cs
- HttpFormatExtensions.cs
- CompatibleComparer.cs
- FlowDocumentFormatter.cs
- DataBindingCollection.cs
- SortDescriptionCollection.cs
- EntryIndex.cs
- ClientScriptManager.cs
- CodeDomDecompiler.cs
- Events.cs
- MatrixUtil.cs
- DefaultPrintController.cs
- XamlFilter.cs
- FixedPageProcessor.cs
- Message.cs
- ToolStripLocationCancelEventArgs.cs
- CompletionProxy.cs
- AbstractDataSvcMapFileLoader.cs
- FormatVersion.cs
- XmlDataDocument.cs
- XPathChildIterator.cs
- CodeMemberMethod.cs
- FamilyTypeface.cs
- dbenumerator.cs
- MultilineStringConverter.cs
- Pair.cs
- XhtmlBasicTextBoxAdapter.cs
- TagPrefixAttribute.cs
- WinFormsSpinner.cs
- HttpCachePolicyWrapper.cs
- ToolStripTextBox.cs
- ContainerParaClient.cs
- _DigestClient.cs
- ServiceModelActivity.cs
- CellParaClient.cs
- InvalidAsynchronousStateException.cs
- FontFamilyValueSerializer.cs
- CodeChecksumPragma.cs
- BaseDataList.cs
- RuntimeTrackingProfile.cs
- AttributeSetAction.cs
- Variant.cs
- AsmxEndpointPickerExtension.cs
- DataRecord.cs
- SplitContainer.cs
- ControlOperationInvoker.cs