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
- ImageAnimator.cs
- AutomationProperties.cs
- OrderedDictionary.cs
- DoubleSumAggregationOperator.cs
- DynamicDataRoute.cs
- TransactionManager.cs
- ParseElement.cs
- DisposableCollectionWrapper.cs
- ListViewCancelEventArgs.cs
- SQLChars.cs
- Geometry.cs
- SchemaTypeEmitter.cs
- TabControlCancelEvent.cs
- DebugControllerThread.cs
- MobileUserControlDesigner.cs
- OleDbConnectionInternal.cs
- JoinSymbol.cs
- AnnotationDocumentPaginator.cs
- TextViewBase.cs
- OutputScopeManager.cs
- XamlToRtfWriter.cs
- TextTreeInsertUndoUnit.cs
- AddressAccessDeniedException.cs
- View.cs
- HttpModulesSection.cs
- ImageCodecInfoPrivate.cs
- PropertyCondition.cs
- TransactionBehavior.cs
- MailBnfHelper.cs
- FileStream.cs
- SafeUserTokenHandle.cs
- SiteMapPath.cs
- BitmapEffect.cs
- EventDescriptorCollection.cs
- AvTraceFormat.cs
- TextServicesDisplayAttributePropertyRanges.cs
- mactripleDES.cs
- StateBag.cs
- DataControlField.cs
- EntityConnectionStringBuilderItem.cs
- UserUseLicenseDictionaryLoader.cs
- CodeExporter.cs
- StringPropertyBuilder.cs
- TagPrefixInfo.cs
- DoubleCollection.cs
- DataBindEngine.cs
- RegexWriter.cs
- PackagingUtilities.cs
- TypeReference.cs
- ModifyActivitiesPropertyDescriptor.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RMEnrollmentPage3.cs
- ResourceDisplayNameAttribute.cs
- BridgeDataRecord.cs
- XmlSchemaComplexType.cs
- MetadataImporterQuotas.cs
- SqlBuilder.cs
- MissingMemberException.cs
- ConstraintManager.cs
- CodeDelegateInvokeExpression.cs
- GorillaCodec.cs
- XmlValidatingReaderImpl.cs
- DiscoveryReferences.cs
- SurrogateSelector.cs
- DataGridCellItemAutomationPeer.cs
- PauseStoryboard.cs
- Column.cs
- SafeReversePInvokeHandle.cs
- SafeNativeMethods.cs
- DataBindEngine.cs
- ComPlusTypeValidator.cs
- AutoScrollExpandMessageFilter.cs
- NameValuePermission.cs
- NativeMethods.cs
- EventLogEntryCollection.cs
- AnnotationResourceChangedEventArgs.cs
- ChildrenQuery.cs
- HttpRuntime.cs
- DocumentPageTextView.cs
- SqlMethodAttribute.cs
- EntityDataSourceChangedEventArgs.cs
- BuildDependencySet.cs
- FilteredAttributeCollection.cs
- ElementHost.cs
- FileDialog.cs
- CompositeFontParser.cs
- UserThread.cs
- DiagnosticsConfigurationHandler.cs
- InvalidateEvent.cs
- GenericEnumerator.cs
- CommandConverter.cs
- SqlUtils.cs
- ActivityDesignerLayoutSerializers.cs
- DbConnectionOptions.cs
- ConsoleCancelEventArgs.cs
- FactoryGenerator.cs
- DBBindings.cs
- CodeObject.cs
- MoveSizeWinEventHandler.cs
- ValidationResult.cs