Code:
/ FX-1434 / FX-1434 / 1.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
- CompoundFileDeflateTransform.cs
- CssStyleCollection.cs
- KnownIds.cs
- XmlElement.cs
- DataGridSortingEventArgs.cs
- XmlBinaryReader.cs
- SimpleFileLog.cs
- RegexWorker.cs
- PointHitTestResult.cs
- TextServicesProperty.cs
- Certificate.cs
- StrongName.cs
- NamespaceTable.cs
- ISO2022Encoding.cs
- JulianCalendar.cs
- SmiEventSink_Default.cs
- RoleBoolean.cs
- RemoteCryptoDecryptRequest.cs
- DataGridViewCellLinkedList.cs
- AsymmetricKeyExchangeFormatter.cs
- EditBehavior.cs
- Regex.cs
- TextDecorationCollection.cs
- AssemblyCache.cs
- XmlDataProvider.cs
- DnsPermission.cs
- Compilation.cs
- MouseBinding.cs
- MsmqException.cs
- ToolStripCustomTypeDescriptor.cs
- SafeLibraryHandle.cs
- PackageDigitalSignatureManager.cs
- WindowsFormsDesignerOptionService.cs
- NamespaceDisplay.xaml.cs
- TCEAdapterGenerator.cs
- ProfilePropertySettingsCollection.cs
- FrameAutomationPeer.cs
- WindowsRichEditRange.cs
- RouteItem.cs
- AttributeQuery.cs
- CompilationSection.cs
- DataGridViewBindingCompleteEventArgs.cs
- DescendantBaseQuery.cs
- Matrix3DValueSerializer.cs
- SafeRightsManagementPubHandle.cs
- Int64Converter.cs
- ProcessThread.cs
- Pair.cs
- VectorAnimation.cs
- WebPartTransformerCollection.cs
- ApplicationTrust.cs
- DateTimeParse.cs
- StoreContentChangedEventArgs.cs
- NullableIntMinMaxAggregationOperator.cs
- Int32Rect.cs
- StateDesigner.LayoutSelectionGlyph.cs
- Transform.cs
- TargetInvocationException.cs
- ResourceWriter.cs
- DataTableNameHandler.cs
- XmlDesignerDataSourceView.cs
- SerializationInfo.cs
- ColorDialog.cs
- GridViewEditEventArgs.cs
- TreeIterator.cs
- WebPartCloseVerb.cs
- TextBoxRenderer.cs
- PageAsyncTask.cs
- RightsManagementEncryptionTransform.cs
- MarginsConverter.cs
- HtmlPageAdapter.cs
- CodeRegionDirective.cs
- IndicShape.cs
- DeadCharTextComposition.cs
- DataGridViewColumn.cs
- AmbientLight.cs
- XmlIgnoreAttribute.cs
- IisTraceWebEventProvider.cs
- XmlAttributeProperties.cs
- WorkflowItemsPresenter.cs
- UniqueSet.cs
- LinkButton.cs
- UrlAuthFailedErrorFormatter.cs
- BackgroundFormatInfo.cs
- OperationContext.cs
- LayoutEditorPart.cs
- ModelPerspective.cs
- DataObjectSettingDataEventArgs.cs
- WebPartHeaderCloseVerb.cs
- DataPagerCommandEventArgs.cs
- ListItemCollection.cs
- ReaderWriterLock.cs
- ApplicationProxyInternal.cs
- LocalBuilder.cs
- StylusPointDescription.cs
- InputBuffer.cs
- DataControlCommands.cs
- IInstanceTable.cs
- DiagnosticTrace.cs
- DictionaryKeyPropertyAttribute.cs