Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PhoneCallDesigner.cs
- NonPrimarySelectionGlyph.cs
- InputLanguageManager.cs
- DesignerProperties.cs
- XmlWellformedWriter.cs
- Parser.cs
- contentDescriptor.cs
- DateTimeOffset.cs
- DataSourceNameHandler.cs
- QuaternionAnimation.cs
- FileUtil.cs
- CodeIdentifier.cs
- StringPropertyBuilder.cs
- BorderSidesEditor.cs
- ToolBar.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DifferencingCollection.cs
- DesignerVerbCollection.cs
- XPathConvert.cs
- BidOverLoads.cs
- PenThread.cs
- HttpProfileGroupBase.cs
- XmlDataCollection.cs
- CustomAttribute.cs
- RuntimeResourceSet.cs
- MsmqReceiveHelper.cs
- AdornedElementPlaceholder.cs
- NameNode.cs
- propertyentry.cs
- XPathNode.cs
- FixedBufferAttribute.cs
- PriorityRange.cs
- Slider.cs
- HttpCachePolicyElement.cs
- NamespaceInfo.cs
- DataGridDetailsPresenterAutomationPeer.cs
- Themes.cs
- IriParsingElement.cs
- PermissionSet.cs
- RepeaterCommandEventArgs.cs
- PersonalizationStateInfo.cs
- BinaryConverter.cs
- ServiceTimeoutsElement.cs
- ConversionContext.cs
- SafeRegistryKey.cs
- SqlFunctionAttribute.cs
- CodeConditionStatement.cs
- InstancePersistenceEvent.cs
- DateTimeOffsetConverter.cs
- FragmentNavigationEventArgs.cs
- ValidationEventArgs.cs
- ValidatorCompatibilityHelper.cs
- WindowsFormsHelpers.cs
- ComboBoxDesigner.cs
- PageThemeCodeDomTreeGenerator.cs
- input.cs
- ArgumentException.cs
- RegexCode.cs
- RelatedPropertyManager.cs
- HttpVersion.cs
- WindowsStartMenu.cs
- invalidudtexception.cs
- SqlDataSourceSelectingEventArgs.cs
- VisualBrush.cs
- CroppedBitmap.cs
- BaseDataList.cs
- TypeValidationEventArgs.cs
- XmlEncoding.cs
- References.cs
- GiveFeedbackEvent.cs
- HelpProvider.cs
- TableStyle.cs
- XmlLinkedNode.cs
- ClientTargetSection.cs
- TreeNodeStyleCollection.cs
- DoubleLinkListEnumerator.cs
- BrowserCapabilitiesCodeGenerator.cs
- QilUnary.cs
- SizeAnimationClockResource.cs
- GridViewSelectEventArgs.cs
- SiteMapSection.cs
- ViewValidator.cs
- WindowInteractionStateTracker.cs
- ContextMenu.cs
- MouseDevice.cs
- HttpServerVarsCollection.cs
- MatrixTransform3D.cs
- InternalConfigHost.cs
- ExpandSegment.cs
- ReflectionUtil.cs
- securitycriticaldata.cs
- ConstNode.cs
- TextSearch.cs
- ClockGroup.cs
- StaticSiteMapProvider.cs
- NetworkInterface.cs
- X509SubjectKeyIdentifierClause.cs
- WebPartZoneCollection.cs
- ComNativeDescriptor.cs
- MultiTrigger.cs