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
- SingleResultAttribute.cs
- COM2PropertyDescriptor.cs
- GraphicsContext.cs
- View.cs
- ContainerActivationHelper.cs
- SynchronizationLockException.cs
- UxThemeWrapper.cs
- UncommonField.cs
- Rotation3D.cs
- InputBinding.cs
- SafePointer.cs
- SafeProcessHandle.cs
- TableCellsCollectionEditor.cs
- WebBrowserProgressChangedEventHandler.cs
- MemberExpression.cs
- ProcessModelInfo.cs
- SoapInteropTypes.cs
- NavigatorInput.cs
- HMACMD5.cs
- LineBreak.cs
- PngBitmapEncoder.cs
- ClientUrlResolverWrapper.cs
- StringConverter.cs
- HtmlElementErrorEventArgs.cs
- TextServicesProperty.cs
- ThumbAutomationPeer.cs
- MarkupProperty.cs
- DocumentPageHost.cs
- SmtpLoginAuthenticationModule.cs
- RequestTimeoutManager.cs
- SourceInterpreter.cs
- CryptographicAttribute.cs
- ClientSettingsStore.cs
- BooleanAnimationUsingKeyFrames.cs
- ExpressionBuilder.cs
- CaseInsensitiveComparer.cs
- TextWriter.cs
- RenderOptions.cs
- ListItem.cs
- RulePatternOps.cs
- SkipStoryboardToFill.cs
- MimeBasePart.cs
- ViewValidator.cs
- ConnectionsZone.cs
- XsltSettings.cs
- RectAnimationUsingKeyFrames.cs
- CodeParameterDeclarationExpressionCollection.cs
- DataColumnCollection.cs
- SplayTreeNode.cs
- ContextProperty.cs
- ScriptHandlerFactory.cs
- CookieProtection.cs
- ToolStripDropDownItem.cs
- TextBoxAutoCompleteSourceConverter.cs
- NotificationContext.cs
- ReadOnlyDataSource.cs
- ComUdtElement.cs
- MouseWheelEventArgs.cs
- CompositeFontParser.cs
- PasswordTextContainer.cs
- ManifestSignatureInformation.cs
- Solver.cs
- ContextBase.cs
- SByteStorage.cs
- ToolStripRenderEventArgs.cs
- ContactManager.cs
- XmlSchemaSimpleTypeUnion.cs
- EntityDataSourceContainerNameConverter.cs
- MultilineStringConverter.cs
- Bookmark.cs
- OracleCommandBuilder.cs
- ConfigurationProperty.cs
- LocationChangedEventArgs.cs
- ReadWriteObjectLock.cs
- PolygonHotSpot.cs
- ZipIOExtraFieldElement.cs
- SafeSecurityHandles.cs
- ParagraphResult.cs
- ZipIOFileItemStream.cs
- TransportElement.cs
- FileVersionInfo.cs
- StrokeIntersection.cs
- MarshalByRefObject.cs
- MessageQueue.cs
- CompilerGlobalScopeAttribute.cs
- RowType.cs
- XPathAncestorIterator.cs
- XmlTextAttribute.cs
- ScrollChrome.cs
- HttpPostedFile.cs
- ReadOnlyState.cs
- __TransparentProxy.cs
- ToolBarPanel.cs
- FontSizeConverter.cs
- ServiceChannelProxy.cs
- AsymmetricAlgorithm.cs
- ToolStripItemCollection.cs
- DoubleKeyFrameCollection.cs
- Int16AnimationUsingKeyFrames.cs
- Ticks.cs