Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- InstalledVoice.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- MemberProjectionIndex.cs
- LogArchiveSnapshot.cs
- TypeDescriptor.cs
- peernodestatemanager.cs
- WindowsTooltip.cs
- ConfigurationProperty.cs
- ElementHostPropertyMap.cs
- XamlBuildTaskServices.cs
- WindowsToolbar.cs
- RemoteWebConfigurationHostServer.cs
- UnsafeNativeMethods.cs
- ParentQuery.cs
- XmlElementList.cs
- TogglePatternIdentifiers.cs
- Thickness.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- AuthenticationModuleElement.cs
- GridViewCancelEditEventArgs.cs
- SelectionEditor.cs
- SQLSingle.cs
- SchemaReference.cs
- SQLInt32Storage.cs
- WebContext.cs
- ExpanderAutomationPeer.cs
- FolderBrowserDialogDesigner.cs
- StylusPointProperties.cs
- WebSysDisplayNameAttribute.cs
- HatchBrush.cs
- WindowsTokenRoleProvider.cs
- COMException.cs
- SerializationObjectManager.cs
- SqlVisitor.cs
- EntityDataSourceColumn.cs
- FunctionUpdateCommand.cs
- TypedCompletedAsyncResult.cs
- CommandManager.cs
- SystemColorTracker.cs
- OpenTypeLayout.cs
- Dynamic.cs
- SqlConnectionString.cs
- DataGridViewToolTip.cs
- ContextMarshalException.cs
- SqlBooleanMismatchVisitor.cs
- ImageField.cs
- ExtentKey.cs
- DesignerEditorPartChrome.cs
- ChangesetResponse.cs
- ProvidePropertyAttribute.cs
- StorageBasedPackageProperties.cs
- RegexCaptureCollection.cs
- Pair.cs
- RemotingConfiguration.cs
- filewebrequest.cs
- StrokeCollectionConverter.cs
- XmlWriterTraceListener.cs
- CapabilitiesState.cs
- OracleBinary.cs
- StylusPlugInCollection.cs
- ServiceHttpHandlerFactory.cs
- XmlCharCheckingWriter.cs
- ClientConfigurationHost.cs
- WinHttpWebProxyFinder.cs
- DocumentEventArgs.cs
- DataRowCollection.cs
- Content.cs
- FixedStringLookup.cs
- PropagatorResult.cs
- MimeTypeMapper.cs
- AccessKeyManager.cs
- DesignerEventService.cs
- SparseMemoryStream.cs
- NativeCppClassAttribute.cs
- PeekCompletedEventArgs.cs
- LineUtil.cs
- HttpInputStream.cs
- ImpersonateTokenRef.cs
- PersonalizableTypeEntry.cs
- TextRangeEditLists.cs
- CheckBoxList.cs
- ItemsPresenter.cs
- PageEventArgs.cs
- DataBoundControlAdapter.cs
- Suspend.cs
- EndpointPerformanceCounters.cs
- MessageBuffer.cs
- SelectionWordBreaker.cs
- DataGridRelationshipRow.cs
- EventMap.cs
- WorkflowInstance.cs
- WebHttpElement.cs
- Canvas.cs
- MouseActionConverter.cs
- BindingsCollection.cs
- DynamicRendererThreadManager.cs
- ModelPerspective.cs
- Keywords.cs
- RequestQueryProcessor.cs
- DataGridViewEditingControlShowingEventArgs.cs