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
- DateTimeValueSerializerContext.cs
- PenThread.cs
- ServiceDescriptions.cs
- _NativeSSPI.cs
- CompareValidator.cs
- DbTransaction.cs
- XmlAttributeCache.cs
- XsltLoader.cs
- ColorBlend.cs
- Currency.cs
- OdbcErrorCollection.cs
- ProfileGroupSettingsCollection.cs
- SoapObjectWriter.cs
- ToolStripTextBox.cs
- Overlapped.cs
- ImageSourceConverter.cs
- WorkflowItemsPresenter.cs
- ZipIOModeEnforcingStream.cs
- SHA1CryptoServiceProvider.cs
- RelationshipEnd.cs
- UriTemplateLiteralQueryValue.cs
- TypeUnloadedException.cs
- TextTreeText.cs
- FieldAccessException.cs
- DbConnectionPoolCounters.cs
- SecurityRuntime.cs
- FileDialogCustomPlaces.cs
- DrawTreeNodeEventArgs.cs
- ScrollChrome.cs
- SvcMapFileLoader.cs
- QilInvoke.cs
- RecognizedWordUnit.cs
- RotateTransform3D.cs
- SkewTransform.cs
- DeclarationUpdate.cs
- ByteStreamGeometryContext.cs
- ProcessExitedException.cs
- JpegBitmapDecoder.cs
- HttpConfigurationContext.cs
- AssemblySettingAttributes.cs
- CodeMethodReturnStatement.cs
- TextPointer.cs
- NullNotAllowedCollection.cs
- DefaultValidator.cs
- TextMarkerSource.cs
- ObjectStorage.cs
- CacheRequest.cs
- entityreference_tresulttype.cs
- TypographyProperties.cs
- HwndStylusInputProvider.cs
- DataBindingList.cs
- Renderer.cs
- WebPartEditorOkVerb.cs
- PipelineDeploymentState.cs
- XmlAnyElementAttributes.cs
- GPStream.cs
- DbDataAdapter.cs
- IFlowDocumentViewer.cs
- MonikerProxyAttribute.cs
- GridProviderWrapper.cs
- COM2PropertyDescriptor.cs
- SpellerStatusTable.cs
- BitVec.cs
- DocumentOrderQuery.cs
- BuildResult.cs
- FocusWithinProperty.cs
- XmlSchemaComplexContent.cs
- SecurityKeyType.cs
- RuntimeIdentifierPropertyAttribute.cs
- OutputCacheProfileCollection.cs
- KeyEventArgs.cs
- GlobalAllocSafeHandle.cs
- LateBoundBitmapDecoder.cs
- CodeVariableDeclarationStatement.cs
- ClientBuildManager.cs
- FileResponseElement.cs
- EncoderNLS.cs
- BinaryMethodMessage.cs
- MetaModel.cs
- Icon.cs
- ConnectAlgorithms.cs
- ToolStripStatusLabel.cs
- UmAlQuraCalendar.cs
- SendReply.cs
- TableLayoutStyle.cs
- DataGridViewRow.cs
- CompModSwitches.cs
- TransformPatternIdentifiers.cs
- ObjectDataSourceSelectingEventArgs.cs
- StreamResourceInfo.cs
- ReflectEventDescriptor.cs
- ResourcesGenerator.cs
- VersionUtil.cs
- SafeNativeMethods.cs
- ResourceCategoryAttribute.cs
- NamespaceImport.cs
- SamlAuthorizationDecisionClaimResource.cs
- NamedPermissionSet.cs
- InvokeMethodDesigner.xaml.cs
- ArglessEventHandlerProxy.cs