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
- Model3DCollection.cs
- SqlMetaData.cs
- XmlCodeExporter.cs
- XPathNodeHelper.cs
- MsmqUri.cs
- _NTAuthentication.cs
- MergeFilterQuery.cs
- SerializeAbsoluteContext.cs
- SizeAnimationClockResource.cs
- XmlDataProvider.cs
- ColorPalette.cs
- Viewport3DAutomationPeer.cs
- FillErrorEventArgs.cs
- Tablet.cs
- BindingObserver.cs
- GenericsInstances.cs
- GC.cs
- OleCmdHelper.cs
- DesignerActionMethodItem.cs
- StringExpressionSet.cs
- XmlDataDocument.cs
- Bold.cs
- LinqDataSourceValidationException.cs
- TranslateTransform3D.cs
- _SslState.cs
- XMLSchema.cs
- Calendar.cs
- UntypedNullExpression.cs
- DbConnectionPool.cs
- IDQuery.cs
- HttpCacheVaryByContentEncodings.cs
- MILUtilities.cs
- EdmProviderManifest.cs
- ContextStaticAttribute.cs
- Preprocessor.cs
- AssemblyAttributes.cs
- UnhandledExceptionEventArgs.cs
- figurelength.cs
- XsdDuration.cs
- Avt.cs
- DataServiceConfiguration.cs
- WorkflowInspectionServices.cs
- HashAlgorithm.cs
- WebMessageFormatHelper.cs
- ResourcePermissionBase.cs
- IdentityManager.cs
- XmlBindingWorker.cs
- XXXOnTypeBuilderInstantiation.cs
- Point4D.cs
- FunctionImportElement.cs
- DbConnectionPoolIdentity.cs
- AllMembershipCondition.cs
- WindowPattern.cs
- ColorTransformHelper.cs
- OdbcError.cs
- XmlSchemaException.cs
- EventlogProvider.cs
- NumberFormatter.cs
- DataGridCell.cs
- CloudCollection.cs
- WmlPageAdapter.cs
- Enum.cs
- Rijndael.cs
- PackageDigitalSignatureManager.cs
- DataContractSet.cs
- PropertyEmitter.cs
- GenerateTemporaryAssemblyTask.cs
- Vars.cs
- DirectoryObjectSecurity.cs
- X509Chain.cs
- TypedElement.cs
- RecordsAffectedEventArgs.cs
- SafeCertificateStore.cs
- WindowsToolbarAsMenu.cs
- BinaryReader.cs
- CatalogZoneBase.cs
- QilCloneVisitor.cs
- JavaScriptObjectDeserializer.cs
- XmlElementAttribute.cs
- HealthMonitoringSectionHelper.cs
- LineServicesRun.cs
- TitleStyle.cs
- _UncName.cs
- ImageField.cs
- CapacityStreamGeometryContext.cs
- WorkflowInstance.cs
- SoapTypeAttribute.cs
- NestPullup.cs
- TextFormatterImp.cs
- CompilerLocalReference.cs
- HashCodeCombiner.cs
- CodeVariableReferenceExpression.cs
- ExecutionScope.cs
- Event.cs
- AnnouncementService.cs
- ConfigurationLockCollection.cs
- XComponentModel.cs
- RadialGradientBrush.cs
- SqlDataAdapter.cs
- COM2IPerPropertyBrowsingHandler.cs