Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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
- IERequestCache.cs
- ProviderConnectionPoint.cs
- VisualBasicDesignerHelper.cs
- ComplexTypeEmitter.cs
- SystemMulticastIPAddressInformation.cs
- OdbcDataAdapter.cs
- PlatformCulture.cs
- NullRuntimeConfig.cs
- UnicastIPAddressInformationCollection.cs
- SrgsElementList.cs
- PeerNameRecord.cs
- ListViewGroupCollectionEditor.cs
- CodeVariableReferenceExpression.cs
- CheckBoxStandardAdapter.cs
- HtmlLink.cs
- TokenBasedSet.cs
- FontStretchConverter.cs
- RuntimeConfigLKG.cs
- TimeSpanConverter.cs
- SystemWebCachingSectionGroup.cs
- ResourceDisplayNameAttribute.cs
- UndirectedGraph.cs
- Storyboard.cs
- TableFieldsEditor.cs
- ISessionStateStore.cs
- ColorDialog.cs
- _HeaderInfoTable.cs
- DataRowView.cs
- CloseSequenceResponse.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- IndexingContentUnit.cs
- GeneratedView.cs
- Serializer.cs
- Int64AnimationUsingKeyFrames.cs
- ConsoleKeyInfo.cs
- ModelVisual3D.cs
- GuidelineSet.cs
- OleDbConnectionInternal.cs
- ScrollChrome.cs
- ScriptDescriptor.cs
- CodeTypeDelegate.cs
- DesignerMetadata.cs
- Screen.cs
- AttributeCollection.cs
- TextParentUndoUnit.cs
- MessageDroppedTraceRecord.cs
- AgileSafeNativeMemoryHandle.cs
- AssociationTypeEmitter.cs
- IRCollection.cs
- CookieParameter.cs
- WbmpConverter.cs
- XmlSchemaChoice.cs
- EventManager.cs
- WCFBuildProvider.cs
- TypeUtils.cs
- CollectionMarkupSerializer.cs
- TreeNode.cs
- xmlglyphRunInfo.cs
- FtpWebRequest.cs
- BaseParser.cs
- SessionIDManager.cs
- Pool.cs
- XmlSecureResolver.cs
- BinaryNode.cs
- AutoResetEvent.cs
- SecuritySessionClientSettings.cs
- DrawingGroup.cs
- MenuAutoFormat.cs
- EmptyCollection.cs
- VisualCollection.cs
- MultiBinding.cs
- PaperSize.cs
- EventHandlersStore.cs
- CollectionChangeEventArgs.cs
- EntryPointNotFoundException.cs
- InertiaRotationBehavior.cs
- SingleAnimation.cs
- UriSection.cs
- EmbeddedObject.cs
- ColumnHeader.cs
- RolePrincipal.cs
- TextServicesHost.cs
- ListViewItem.cs
- FixedSOMFixedBlock.cs
- EventProvider.cs
- ObjectDataSourceStatusEventArgs.cs
- PageContentAsyncResult.cs
- CompositeDataBoundControl.cs
- InvalidEnumArgumentException.cs
- ExpressionBuilderContext.cs
- MdbDataFileEditor.cs
- Convert.cs
- ReverseInheritProperty.cs
- RemotingSurrogateSelector.cs
- DesigntimeLicenseContext.cs
- ClusterRegistryConfigurationProvider.cs
- CommandDevice.cs
- wgx_commands.cs
- PackageDocument.cs
- GetWinFXPath.cs