Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ClientTarget.cs
- ChildrenQuery.cs
- QilTargetType.cs
- PartialTrustHelpers.cs
- AppLevelCompilationSectionCache.cs
- TemplatedAdorner.cs
- XmlSchemaCollection.cs
- Error.cs
- QilBinary.cs
- NativeMethods.cs
- XslCompiledTransform.cs
- JulianCalendar.cs
- LinkedResourceCollection.cs
- ProxyDataContractResolver.cs
- ToolStripItemClickedEventArgs.cs
- ProjectionCamera.cs
- WebPartManagerInternals.cs
- CreateInstanceBinder.cs
- TextRangeEditTables.cs
- ProviderConnectionPoint.cs
- SignatureHelper.cs
- IMembershipProvider.cs
- CodeTypeDelegate.cs
- HwndHostAutomationPeer.cs
- ToolStripTemplateNode.cs
- StylusPointPropertyInfoDefaults.cs
- GenericIdentity.cs
- _StreamFramer.cs
- FileCodeGroup.cs
- SizeValueSerializer.cs
- UIElement3D.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ProfilePropertyMetadata.cs
- SqlUdtInfo.cs
- ListDictionaryInternal.cs
- ClientRolePrincipal.cs
- SqlRemoveConstantOrderBy.cs
- ServiceCredentialsSecurityTokenManager.cs
- RecognizeCompletedEventArgs.cs
- ILGenerator.cs
- JulianCalendar.cs
- EventLogPermission.cs
- AutoScrollExpandMessageFilter.cs
- XmlToDatasetMap.cs
- IApplicationTrustManager.cs
- WebBrowserBase.cs
- util.cs
- CompilerHelpers.cs
- DataServiceHost.cs
- _SSPISessionCache.cs
- QilDataSource.cs
- CodeSnippetTypeMember.cs
- XPathMultyIterator.cs
- MessageQueueInstaller.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PenLineJoinValidation.cs
- Roles.cs
- IMembershipProvider.cs
- HtmlInputHidden.cs
- ItemsControlAutomationPeer.cs
- BrowserCapabilitiesFactory35.cs
- HttpWriter.cs
- ResourceDescriptionAttribute.cs
- TogglePatternIdentifiers.cs
- SmiTypedGetterSetter.cs
- DomNameTable.cs
- Page.cs
- DispatcherTimer.cs
- RegexFCD.cs
- ExecutorLocksHeldException.cs
- OperationFormatter.cs
- XsdValidatingReader.cs
- ServiceObjectContainer.cs
- ExceptionUtil.cs
- AbstractDataSvcMapFileLoader.cs
- Token.cs
- __Filters.cs
- ServerValidateEventArgs.cs
- filewebresponse.cs
- CheckBoxField.cs
- TextRangeEditTables.cs
- VectorValueSerializer.cs
- LineGeometry.cs
- StateItem.cs
- ReceiveContext.cs
- BypassElementCollection.cs
- Win32Exception.cs
- RegexParser.cs
- smtppermission.cs
- Rotation3D.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- MSAAEventDispatcher.cs
- XmlDataLoader.cs
- AssemblyResourceLoader.cs
- HttpVersion.cs
- TableRowCollection.cs
- SingleAnimationUsingKeyFrames.cs
- _TransmitFileOverlappedAsyncResult.cs
- StringDictionaryWithComparer.cs
- WindowsSlider.cs