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
- ProgressBarHighlightConverter.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- SecurityKeyIdentifier.cs
- MarshalDirectiveException.cs
- Preprocessor.cs
- TypeValidationEventArgs.cs
- HwndSourceParameters.cs
- DocComment.cs
- XMLSyntaxException.cs
- PipelineComponent.cs
- FilteredAttributeCollection.cs
- DataGridViewCellConverter.cs
- PassportIdentity.cs
- IsolatedStorageFilePermission.cs
- RadioButton.cs
- SpellerStatusTable.cs
- TreeSet.cs
- SoapServerMessage.cs
- SelectionItemProviderWrapper.cs
- MediaContextNotificationWindow.cs
- SequentialUshortCollection.cs
- ChildrenQuery.cs
- ItemsChangedEventArgs.cs
- ToolboxItemCollection.cs
- StyleModeStack.cs
- WmlPhoneCallAdapter.cs
- CodeGroup.cs
- SymmetricKey.cs
- WindowsGraphics.cs
- ParameterCollection.cs
- InheritanceRules.cs
- AssemblyAssociatedContentFileAttribute.cs
- UnsafeNativeMethods.cs
- _DisconnectOverlappedAsyncResult.cs
- Decorator.cs
- TrackBarDesigner.cs
- FormsAuthenticationTicket.cs
- Control.cs
- MarkupWriter.cs
- BypassElementCollection.cs
- ProviderConnectionPoint.cs
- TaiwanLunisolarCalendar.cs
- FocusTracker.cs
- CodeTypeDeclarationCollection.cs
- HtmlEncodedRawTextWriter.cs
- WebPartMovingEventArgs.cs
- ImageInfo.cs
- SequentialUshortCollection.cs
- UserControlAutomationPeer.cs
- DataGridBoolColumn.cs
- CodeCommentStatement.cs
- ErrorStyle.cs
- RegexWorker.cs
- QueryOpcode.cs
- ToolboxItemFilterAttribute.cs
- ComponentChangingEvent.cs
- ContainerVisual.cs
- HebrewNumber.cs
- StylusButton.cs
- StateWorkerRequest.cs
- CssStyleCollection.cs
- Itemizer.cs
- StylusShape.cs
- CodeDefaultValueExpression.cs
- DataBindingsDialog.cs
- RenderContext.cs
- TabControl.cs
- PrintPageEvent.cs
- DataKey.cs
- CodeTypeDeclaration.cs
- basecomparevalidator.cs
- Int16AnimationUsingKeyFrames.cs
- UnsafeNativeMethods.cs
- NullReferenceException.cs
- Point3DAnimationBase.cs
- DoubleAnimation.cs
- AttachedPropertyBrowsableAttribute.cs
- SoapDocumentMethodAttribute.cs
- RewritingProcessor.cs
- BamlBinaryReader.cs
- PageCatalogPart.cs
- DockProviderWrapper.cs
- LinqTreeNodeEvaluator.cs
- RectangleHotSpot.cs
- MeshGeometry3D.cs
- MenuCommand.cs
- LogicalTreeHelper.cs
- Encoder.cs
- ChangePassword.cs
- ZipFileInfo.cs
- Utils.cs
- EntityTypeEmitter.cs
- MachineKeySection.cs
- ZipIOExtraFieldZip64Element.cs
- TypeDescriptionProvider.cs
- OptimizedTemplateContentHelper.cs
- _Connection.cs
- NonSerializedAttribute.cs
- StylusPointDescription.cs
- PkcsUtils.cs