Code:
/ FX-1434 / FX-1434 / 1.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
- ScriptModule.cs
- AbstractSvcMapFileLoader.cs
- GridViewRowPresenter.cs
- COMException.cs
- HttpHandlerAction.cs
- VectorConverter.cs
- StateBag.cs
- MissingMemberException.cs
- PersonalizationStateInfoCollection.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- RangeValidator.cs
- Schema.cs
- KeyboardEventArgs.cs
- LinqDataView.cs
- DBConcurrencyException.cs
- XmlAttributeOverrides.cs
- SmiContextFactory.cs
- DialogResultConverter.cs
- AuthorizationPolicyTypeElementCollection.cs
- TextProviderWrapper.cs
- BamlResourceContent.cs
- _RegBlobWebProxyDataBuilder.cs
- CardSpaceShim.cs
- DynamicArgumentDesigner.xaml.cs
- ConstantProjectedSlot.cs
- CompModSwitches.cs
- FloatUtil.cs
- Clock.cs
- CollectionViewSource.cs
- UncommonField.cs
- DictionarySectionHandler.cs
- SqlDataSourceEnumerator.cs
- TextTabProperties.cs
- XmlSchemaComplexType.cs
- OptimizerPatterns.cs
- SqlRetyper.cs
- ViewCellRelation.cs
- XmlSortKeyAccumulator.cs
- XmlSortKeyAccumulator.cs
- FixedPosition.cs
- WindowsToolbarItemAsMenuItem.cs
- TableLayoutRowStyleCollection.cs
- RegexParser.cs
- AuthorizationSection.cs
- SoapSchemaExporter.cs
- DropTarget.cs
- SqlRewriteScalarSubqueries.cs
- VirtualizingStackPanel.cs
- ScriptReferenceBase.cs
- ThreadAttributes.cs
- StrokeCollection.cs
- columnmapkeybuilder.cs
- ZipQueryOperator.cs
- SHA256Cng.cs
- GridViewSortEventArgs.cs
- InfoCardAsymmetricCrypto.cs
- SchemaTypeEmitter.cs
- SyntaxCheck.cs
- SrgsGrammar.cs
- FlowDocumentPaginator.cs
- KeyValuePairs.cs
- ResizeGrip.cs
- MessagePropertyVariants.cs
- MetadataArtifactLoaderCompositeResource.cs
- DataRowView.cs
- GeneralTransform3DGroup.cs
- RegisteredArrayDeclaration.cs
- SecurityContext.cs
- RectAnimationClockResource.cs
- PreparingEnlistment.cs
- NativeMethods.cs
- Visitors.cs
- XmlWhitespace.cs
- UIElementHelper.cs
- Pair.cs
- StateMachineHelpers.cs
- HttpCacheVary.cs
- RegionIterator.cs
- MouseGesture.cs
- COM2ComponentEditor.cs
- AnnotationComponentManager.cs
- EdgeModeValidation.cs
- BaseInfoTable.cs
- HostExecutionContextManager.cs
- AttachedAnnotationChangedEventArgs.cs
- ShaperBuffers.cs
- LockCookie.cs
- EdmComplexTypeAttribute.cs
- OleDbSchemaGuid.cs
- EntityStoreSchemaFilterEntry.cs
- SelectorItemAutomationPeer.cs
- SafeNativeMethodsOther.cs
- WindowsListViewScroll.cs
- OleDbErrorCollection.cs
- EditorBrowsableAttribute.cs
- DependentList.cs
- NavigatorInput.cs
- WebPartEditVerb.cs
- mediaclock.cs
- MetricEntry.cs