Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / NetworkInformationException.cs / 1305376 / 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsToolbarItemAsMenuItem.cs
- DataGridViewCellValueEventArgs.cs
- TrustManagerMoreInformation.cs
- CodeTryCatchFinallyStatement.cs
- AnnotationResourceChangedEventArgs.cs
- ASCIIEncoding.cs
- PhysicalOps.cs
- UriParserTemplates.cs
- Animatable.cs
- EntityContainerRelationshipSet.cs
- PrintingPermission.cs
- Label.cs
- PropertyOverridesTypeEditor.cs
- ListBoxItemWrapperAutomationPeer.cs
- OleDbDataReader.cs
- HandleRef.cs
- ConversionHelper.cs
- ToolStripMenuItem.cs
- AnnotationMap.cs
- TextEditorDragDrop.cs
- BindingExpressionBase.cs
- Zone.cs
- TransactionContextManager.cs
- ButtonPopupAdapter.cs
- UIElementParaClient.cs
- C14NUtil.cs
- TextShapeableCharacters.cs
- SafeHandles.cs
- HttpFileCollection.cs
- WebConfigurationHostFileChange.cs
- XPathDocument.cs
- FrameworkContentElement.cs
- Comparer.cs
- EmptyEnumerator.cs
- Item.cs
- CharEnumerator.cs
- EntityDataSourceState.cs
- Interlocked.cs
- WindowsListViewItemStartMenu.cs
- Propagator.cs
- Console.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- ApplicationInterop.cs
- TreeBuilder.cs
- DataSourceXmlElementAttribute.cs
- EmulateRecognizeCompletedEventArgs.cs
- RepeaterItem.cs
- MatrixAnimationUsingPath.cs
- CopyNamespacesAction.cs
- TypeSystem.cs
- KeyProperty.cs
- Debug.cs
- SoapHeader.cs
- SecurityTokenException.cs
- WindowsBrush.cs
- Mapping.cs
- EncoderBestFitFallback.cs
- TextBounds.cs
- CqlErrorHelper.cs
- CompositeCollectionView.cs
- NGCPageContentSerializerAsync.cs
- ObjectKeyFrameCollection.cs
- Pair.cs
- PointAnimation.cs
- NotifyCollectionChangedEventArgs.cs
- IndexerNameAttribute.cs
- BuildManagerHost.cs
- XmlReaderSettings.cs
- ToolbarAUtomationPeer.cs
- DataGridViewCellCancelEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- PenLineCapValidation.cs
- NavigationWindow.cs
- WindowsTokenRoleProvider.cs
- HTMLTextWriter.cs
- TargetConverter.cs
- KeyedHashAlgorithm.cs
- Int16AnimationUsingKeyFrames.cs
- RestHandler.cs
- SequentialOutput.cs
- ContextQuery.cs
- Oid.cs
- SendingRequestEventArgs.cs
- ExpandSegmentCollection.cs
- SplitterCancelEvent.cs
- FieldNameLookup.cs
- InfiniteIntConverter.cs
- MsmqBindingFilter.cs
- SynchronizingStream.cs
- SettingsProperty.cs
- MobileTemplatedControlDesigner.cs
- DataRowView.cs
- RijndaelManagedTransform.cs
- AssemblyBuilder.cs
- ColumnWidthChangedEvent.cs
- LabelAutomationPeer.cs
- DateTimeFormat.cs
- StorageEntityContainerMapping.cs
- BamlTreeUpdater.cs
- MessageHeaderDescriptionCollection.cs