Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / NetworkInformationException.cs / 1305376 / 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.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LineProperties.cs
- RijndaelManaged.cs
- ResourcePermissionBaseEntry.cs
- DataServiceHost.cs
- XhtmlConformanceSection.cs
- DataPagerFieldItem.cs
- ThreadSafeList.cs
- SplitterPanelDesigner.cs
- MulticastOption.cs
- VBIdentifierName.cs
- DoubleAnimationBase.cs
- VerificationException.cs
- XmlBoundElement.cs
- DependencyPropertyHelper.cs
- TimeZone.cs
- DoubleAnimation.cs
- AspNetRouteServiceHttpHandler.cs
- X509SecurityToken.cs
- ConditionCollection.cs
- SqlXmlStorage.cs
- SignedXml.cs
- FilterableAttribute.cs
- ComponentCollection.cs
- SqlCommandBuilder.cs
- RuntimeEnvironment.cs
- XmlAttributeOverrides.cs
- WorkflowViewService.cs
- WebConvert.cs
- SQLInt32.cs
- SqlErrorCollection.cs
- shaperfactoryquerycachekey.cs
- ResXResourceSet.cs
- CaseInsensitiveOrdinalStringComparer.cs
- BroadcastEventHelper.cs
- EntityDataSource.cs
- RightsManagementPermission.cs
- SiteMapDataSource.cs
- ZipIOBlockManager.cs
- SmtpCommands.cs
- DbConnectionPoolGroup.cs
- CollectionTypeElement.cs
- SystemIPInterfaceProperties.cs
- PingReply.cs
- WebBrowserUriTypeConverter.cs
- OleDbWrapper.cs
- InputScope.cs
- BCryptHashAlgorithm.cs
- TypeLoadException.cs
- ProjectedWrapper.cs
- AsyncResult.cs
- BindingCompleteEventArgs.cs
- AnnotationResourceChangedEventArgs.cs
- DispatcherObject.cs
- SecurityKeyUsage.cs
- SurrogateEncoder.cs
- NullToBooleanConverter.cs
- XamlSerializerUtil.cs
- CompositionAdorner.cs
- BamlRecords.cs
- HostProtectionPermission.cs
- QilInvoke.cs
- Stroke2.cs
- TrustSection.cs
- DataServiceQuery.cs
- ConnectionManagementElement.cs
- ByteArrayHelperWithString.cs
- QueryHandler.cs
- SigningCredentials.cs
- AQNBuilder.cs
- Point3DAnimationBase.cs
- DataSourceControl.cs
- GPRECT.cs
- ContractComponent.cs
- CompensatableTransactionScopeActivityDesigner.cs
- FormsAuthenticationEventArgs.cs
- X509CertificateChain.cs
- Point3DAnimation.cs
- TextServicesContext.cs
- ConstructorExpr.cs
- OLEDB_Enum.cs
- ping.cs
- InvariantComparer.cs
- JsonEncodingStreamWrapper.cs
- DbConnectionPoolOptions.cs
- SimpleMailWebEventProvider.cs
- OracleConnectionString.cs
- DesignerDataRelationship.cs
- PeerContact.cs
- StartFileNameEditor.cs
- Signature.cs
- DataGridViewImageCell.cs
- _emptywebproxy.cs
- ValidationPropertyAttribute.cs
- ApplicationTrust.cs
- RoutedCommand.cs
- AssemblyAttributes.cs
- SoapElementAttribute.cs
- ImageDrawing.cs
- LongTypeConverter.cs
- DynamicValueConverter.cs