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
- AttachedPropertyBrowsableAttribute.cs
- PropertyDescriptorComparer.cs
- exports.cs
- SortKey.cs
- Vector3D.cs
- CurrencyWrapper.cs
- columnmapkeybuilder.cs
- TemplateXamlTreeBuilder.cs
- TypeLoadException.cs
- WebResponse.cs
- IpcClientManager.cs
- KeyBinding.cs
- ColorConverter.cs
- _SecureChannel.cs
- AuthenticationService.cs
- BasicKeyConstraint.cs
- AssociatedControlConverter.cs
- SafeRightsManagementHandle.cs
- Deflater.cs
- FamilyTypeface.cs
- ExceptionRoutedEventArgs.cs
- Message.cs
- DiscreteKeyFrames.cs
- Roles.cs
- ZipFileInfo.cs
- MaterializeFromAtom.cs
- httpstaticobjectscollection.cs
- TdsParserStaticMethods.cs
- SrgsItemList.cs
- DirectoryRedirect.cs
- DetailsViewDeletedEventArgs.cs
- ServiceHostingEnvironment.cs
- NativeMethods.cs
- ExpressionLexer.cs
- SafeArrayRankMismatchException.cs
- InputLangChangeRequestEvent.cs
- ToolStripItemDesigner.cs
- PropertyIdentifier.cs
- BezierSegment.cs
- ListBox.cs
- ListViewGroupConverter.cs
- GZipStream.cs
- DataGridRowAutomationPeer.cs
- ComPlusDiagnosticTraceSchemas.cs
- EditCommandColumn.cs
- X509SubjectKeyIdentifierClause.cs
- InkPresenter.cs
- WindowsFormsSectionHandler.cs
- SafeCoTaskMem.cs
- ParallelSeparator.xaml.cs
- SqlConnectionPoolProviderInfo.cs
- DockAndAnchorLayout.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DataGridDesigner.cs
- ExitEventArgs.cs
- GridItemProviderWrapper.cs
- SimpleMailWebEventProvider.cs
- assemblycache.cs
- DataServiceQuery.cs
- CodeAccessSecurityEngine.cs
- ScrollItemProviderWrapper.cs
- SafeFileHandle.cs
- NetworkStream.cs
- KnownIds.cs
- ConfigurationManagerInternalFactory.cs
- MessageHeaderDescriptionCollection.cs
- MenuCommand.cs
- FeatureSupport.cs
- ColorContextHelper.cs
- BooleanSwitch.cs
- _ServiceNameStore.cs
- ApplicationException.cs
- StateValidator.cs
- SerialPinChanges.cs
- BlobPersonalizationState.cs
- EntityClientCacheKey.cs
- ExcCanonicalXml.cs
- GridViewDeletedEventArgs.cs
- AppDomainFactory.cs
- TabControlToolboxItem.cs
- ConfigXmlAttribute.cs
- ResourceWriter.cs
- Vars.cs
- SqlAliasesReferenced.cs
- SQLByte.cs
- SecurityRuntime.cs
- ProviderConnectionPoint.cs
- CookieParameter.cs
- AlternateViewCollection.cs
- HitTestResult.cs
- AssemblyInfo.cs
- ChannelTracker.cs
- EventLog.cs
- RowToFieldTransformer.cs
- RuleSetCollection.cs
- WindowProviderWrapper.cs
- TextSearch.cs
- EventManager.cs
- TypefaceCollection.cs
- SoapAttributeOverrides.cs