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
- ObjectAssociationEndMapping.cs
- SafeEventHandle.cs
- PixelShader.cs
- SafeFileMapViewHandle.cs
- ListViewDeletedEventArgs.cs
- RenderingBiasValidation.cs
- ContentPlaceHolder.cs
- PolicyStatement.cs
- SQLDecimalStorage.cs
- CopyNamespacesAction.cs
- HostingEnvironment.cs
- DataListCommandEventArgs.cs
- EtwTrace.cs
- SelectionService.cs
- Trace.cs
- TextDecorationCollection.cs
- ToolboxDataAttribute.cs
- XPathScanner.cs
- SubMenuStyle.cs
- StylusButtonEventArgs.cs
- BCLDebug.cs
- AuthenticationException.cs
- PocoEntityKeyStrategy.cs
- ToolboxBitmapAttribute.cs
- FileFormatException.cs
- HttpCacheVary.cs
- SingleAnimationBase.cs
- InvokeSchedule.cs
- SqlAliasesReferenced.cs
- OutKeywords.cs
- WebPartConnectionsCancelVerb.cs
- Vector3DAnimationBase.cs
- CharacterBuffer.cs
- RuleSet.cs
- XamlTemplateSerializer.cs
- DataGridViewHeaderCell.cs
- SessionStateUtil.cs
- SchemaImporter.cs
- BitmapEffect.cs
- WebUtility.cs
- BmpBitmapEncoder.cs
- WindowsRebar.cs
- ItemContainerGenerator.cs
- SplitterPanel.cs
- RuntimeCompatibilityAttribute.cs
- AssemblyAssociatedContentFileAttribute.cs
- Repeater.cs
- _emptywebproxy.cs
- PermissionSetEnumerator.cs
- GeneratedContractType.cs
- SecondaryViewProvider.cs
- MultiTrigger.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- X509Certificate2.cs
- RequestQueue.cs
- SmiMetaDataProperty.cs
- BindToObject.cs
- LocationReferenceValue.cs
- HttpWebRequest.cs
- RemoteWebConfigurationHostServer.cs
- DisplayMemberTemplateSelector.cs
- StyleModeStack.cs
- assemblycache.cs
- DispatcherHookEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- PublisherIdentityPermission.cs
- CheckBox.cs
- SimpleApplicationHost.cs
- HyperlinkAutomationPeer.cs
- CatalogPart.cs
- FieldNameLookup.cs
- XPathItem.cs
- ManagedWndProcTracker.cs
- NotifyIcon.cs
- BulletedListEventArgs.cs
- PageContent.cs
- Permission.cs
- MediaTimeline.cs
- ISCIIEncoding.cs
- QilReplaceVisitor.cs
- FactoryGenerator.cs
- TraceHandlerErrorFormatter.cs
- DataSourceCacheDurationConverter.cs
- _AutoWebProxyScriptHelper.cs
- SafeRegistryHandle.cs
- CodeRegionDirective.cs
- MembershipUser.cs
- sortedlist.cs
- HtmlElementCollection.cs
- MultilineStringEditor.cs
- DrawingBrush.cs
- ParseHttpDate.cs
- ChannelHandler.cs
- ByeMessage11.cs
- AppDomainFactory.cs
- Size.cs
- QuadraticBezierSegment.cs
- DelayedRegex.cs
- DataListDesigner.cs
- XmlLoader.cs