Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OraclePermission.cs
- TemplateBindingExpression.cs
- FormParameter.cs
- SerializationInfoEnumerator.cs
- JpegBitmapDecoder.cs
- StrokeDescriptor.cs
- CodeDelegateCreateExpression.cs
- TemplatedAdorner.cs
- ObjectNotFoundException.cs
- Message.cs
- FormViewInsertEventArgs.cs
- FtpWebResponse.cs
- VectorCollectionConverter.cs
- RelationshipWrapper.cs
- TableAdapterManagerGenerator.cs
- AdPostCacheSubstitution.cs
- WindowsToolbar.cs
- TemplateBamlTreeBuilder.cs
- ExpressionBinding.cs
- PolicyLevel.cs
- DialogResultConverter.cs
- XslCompiledTransform.cs
- DataServiceProviderMethods.cs
- RoleManagerEventArgs.cs
- HtmlHead.cs
- _SpnDictionary.cs
- XPathMultyIterator.cs
- ResXDataNode.cs
- HttpWebRequestElement.cs
- StorageFunctionMapping.cs
- GroupLabel.cs
- selecteditemcollection.cs
- PKCS1MaskGenerationMethod.cs
- DataGridViewCellCancelEventArgs.cs
- AsyncCompletedEventArgs.cs
- HyperLinkDesigner.cs
- ColumnMapCopier.cs
- ToolTipService.cs
- DataGridViewCellPaintingEventArgs.cs
- TemplateXamlTreeBuilder.cs
- DoubleAnimation.cs
- CompressionTransform.cs
- DatagridviewDisplayedBandsData.cs
- HttpHandlerAction.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ChooseAction.cs
- wgx_sdk_version.cs
- MembershipUser.cs
- EntityConnectionStringBuilder.cs
- Rijndael.cs
- WindowsListViewGroupHelper.cs
- DataBindingsDialog.cs
- HttpFileCollection.cs
- ColumnCollection.cs
- ResourceManager.cs
- SafeHandles.cs
- altserialization.cs
- DateTimeParse.cs
- MimeXmlReflector.cs
- TextSelectionHelper.cs
- TraceData.cs
- CharEntityEncoderFallback.cs
- DataViewSettingCollection.cs
- SyndicationFeed.cs
- ControlValuePropertyAttribute.cs
- AddDataControlFieldDialog.cs
- FreezableCollection.cs
- EngineSiteSapi.cs
- DataSpaceManager.cs
- CqlParserHelpers.cs
- DictionaryBase.cs
- StyleModeStack.cs
- Menu.cs
- GPRECTF.cs
- TextTreeObjectNode.cs
- DiscoveryReference.cs
- DataMisalignedException.cs
- SplineQuaternionKeyFrame.cs
- EasingFunctionBase.cs
- ManagementQuery.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- ScrollItemProviderWrapper.cs
- nulltextnavigator.cs
- ClientCredentials.cs
- Literal.cs
- JsonQueryStringConverter.cs
- Events.cs
- ComAdminInterfaces.cs
- MimePart.cs
- DataGridViewCellParsingEventArgs.cs
- TdsParameterSetter.cs
- ButtonBase.cs
- TextBox.cs
- DataGridViewCellConverter.cs
- ResolveNameEventArgs.cs
- AspCompat.cs
- ProtocolImporter.cs
- COM2ExtendedTypeConverter.cs
- ipaddressinformationcollection.cs
- BamlRecordWriter.cs