Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- KeyGesture.cs
- FirstQueryOperator.cs
- FilterableData.cs
- IntersectQueryOperator.cs
- DiscoveryClientRequestChannel.cs
- FactoryGenerator.cs
- ContainerAction.cs
- IndexedWhereQueryOperator.cs
- MetadataPropertyAttribute.cs
- SystemDiagnosticsSection.cs
- TokenBasedSet.cs
- OlePropertyStructs.cs
- MenuItemBinding.cs
- BookmarkUndoUnit.cs
- Win32.cs
- DrawToolTipEventArgs.cs
- FlowDecisionDesigner.xaml.cs
- TreeNodeCollection.cs
- SByteConverter.cs
- NavigationPropertySingletonExpression.cs
- XmlQueryRuntime.cs
- BuildTopDownAttribute.cs
- Properties.cs
- ApplicationCommands.cs
- AutoScrollHelper.cs
- CodeArgumentReferenceExpression.cs
- ListViewTableRow.cs
- HttpInputStream.cs
- Int32Rect.cs
- SettingsPropertyValue.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ConfigUtil.cs
- DebugInfoGenerator.cs
- ValidationHelper.cs
- DataObject.cs
- DataTableReader.cs
- PageAction.cs
- HtmlSelect.cs
- MachineKeyConverter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MetadataItem.cs
- Panel.cs
- ComEventsInfo.cs
- DataBoundControlHelper.cs
- HttpRawResponse.cs
- ISAPIWorkerRequest.cs
- SystemParameters.cs
- ReferenceEqualityComparer.cs
- MetadataExchangeBindings.cs
- Int16Storage.cs
- SelectionPattern.cs
- NullableConverter.cs
- TextParagraphView.cs
- EntityContainer.cs
- LayoutUtils.cs
- XmlTextReaderImplHelpers.cs
- TimeSpanOrInfiniteConverter.cs
- DataGridItemCollection.cs
- XmlExceptionHelper.cs
- PerformanceCountersElement.cs
- LayoutDump.cs
- FormViewDeleteEventArgs.cs
- WindowsScrollBarBits.cs
- unsafenativemethodstextservices.cs
- LocatorGroup.cs
- odbcmetadatacolumnnames.cs
- CacheDict.cs
- HostSecurityManager.cs
- MiniLockedBorderGlyph.cs
- XmlCharCheckingReader.cs
- MetadataItem_Static.cs
- ThreadStaticAttribute.cs
- _WebProxyDataBuilder.cs
- XmlDomTextWriter.cs
- _NTAuthentication.cs
- GeneralTransform3DGroup.cs
- NavigationPropertyEmitter.cs
- Peer.cs
- UpdatePanelTrigger.cs
- RequestCachePolicy.cs
- UserPersonalizationStateInfo.cs
- Expressions.cs
- SettingsAttributeDictionary.cs
- QueryStringParameter.cs
- ExpressionTextBox.xaml.cs
- ConnectionStringsSection.cs
- OdbcFactory.cs
- Permission.cs
- TraceLog.cs
- ServiceDescription.cs
- NativeMethods.cs
- FontUnit.cs
- DataMemberAttribute.cs
- DataObjectSettingDataEventArgs.cs
- ConstructorBuilder.cs
- ExpandedWrapper.cs
- KerberosReceiverSecurityToken.cs
- EventManager.cs
- AutoSizeToolBoxItem.cs
- HttpVersion.cs