Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / NetworkInformationException.cs / 1 / NetworkInformationException.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.NetworkInformation { using System; using System.ComponentModel; using System.Net.Sockets; using System.Runtime.Serialization; using System.Runtime.InteropServices; ////// [Serializable] public class NetworkInformationException : Win32Exception { ////// Provides NetworkInformation exceptions to the application. /// ////// public NetworkInformationException() : base(Marshal.GetLastWin32Error()) { } ////// Creates a new instance of the ///class with the default error code. /// /// public NetworkInformationException(int errorCode) : base(errorCode) { } internal NetworkInformationException(SocketError socketError) : base((int)socketError) { } protected NetworkInformationException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext) { } ////// Creates a new instance of the ///class with the specified error code. /// /// 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; } } }; // class NetworkInformationException } // namespace System.Net.NetworkInformation[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HitTestFilterBehavior.cs
- ClickablePoint.cs
- CodeDesigner.cs
- DragEvent.cs
- SmiConnection.cs
- Accessible.cs
- sitestring.cs
- ManipulationInertiaStartingEventArgs.cs
- Vector3DAnimationUsingKeyFrames.cs
- CollectionViewGroupInternal.cs
- SQLUtility.cs
- IPAddress.cs
- PreviewKeyDownEventArgs.cs
- DropTarget.cs
- AccessedThroughPropertyAttribute.cs
- RegexStringValidator.cs
- DeferrableContent.cs
- CopyEncoder.cs
- ScrollProviderWrapper.cs
- XsdBuildProvider.cs
- ObjectPersistData.cs
- Token.cs
- CodeVariableReferenceExpression.cs
- DiscoveryMessageSequence11.cs
- CompilationSection.cs
- SignedInfo.cs
- WindowsListViewItemStartMenu.cs
- thaishape.cs
- HitTestFilterBehavior.cs
- StorageRoot.cs
- SharedConnectionWorkflowTransactionService.cs
- DocumentSchemaValidator.cs
- InternalConfigConfigurationFactory.cs
- VectorCollection.cs
- SortFieldComparer.cs
- CustomCredentialPolicy.cs
- CreateUserWizardAutoFormat.cs
- ProjectionPath.cs
- PrintPreviewDialog.cs
- Operators.cs
- EntityDescriptor.cs
- TemplateEditingService.cs
- SemanticResultKey.cs
- EncodingDataItem.cs
- AssemblyBuilder.cs
- PropertyFilterAttribute.cs
- CompareValidator.cs
- ConfigurationFileMap.cs
- SynchronizationScope.cs
- ISSmlParser.cs
- WebMessageFormatHelper.cs
- Range.cs
- MimeWriter.cs
- MatrixTransform.cs
- AnnotationDocumentPaginator.cs
- AuthorizationContext.cs
- VisualBasicDesignerHelper.cs
- BaseParser.cs
- Triplet.cs
- DataPagerCommandEventArgs.cs
- TrustSection.cs
- UnmanagedMemoryStreamWrapper.cs
- MdImport.cs
- ResourcePermissionBaseEntry.cs
- BitStack.cs
- XmlSchemas.cs
- CTreeGenerator.cs
- StreamInfo.cs
- DesignerVerb.cs
- List.cs
- SmtpDateTime.cs
- RequestCachePolicyConverter.cs
- DrawingVisual.cs
- FrameSecurityDescriptor.cs
- SliderAutomationPeer.cs
- Control.cs
- SafeHandle.cs
- DbConnectionPoolOptions.cs
- MatrixStack.cs
- Inflater.cs
- ISO2022Encoding.cs
- BCLDebug.cs
- StreamGeometry.cs
- PluggableProtocol.cs
- COMException.cs
- SingleObjectCollection.cs
- DataGridViewTopLeftHeaderCell.cs
- SafeMILHandle.cs
- DataSourceControlBuilder.cs
- HashRepartitionEnumerator.cs
- Stylesheet.cs
- TraceSection.cs
- ToolStripRenderer.cs
- HTTPNotFoundHandler.cs
- ContextMarshalException.cs
- XmlSerializableReader.cs
- ListViewItemMouseHoverEvent.cs
- BindValidator.cs
- BoundsDrawingContextWalker.cs
- EdmConstants.cs