Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- AttachedAnnotationChangedEventArgs.cs
- WpfSharedXamlSchemaContext.cs
- PageAdapter.cs
- TrackPoint.cs
- OdbcStatementHandle.cs
- DesignerAdapterAttribute.cs
- TcpStreams.cs
- UnsafeNetInfoNativeMethods.cs
- ProfileGroupSettings.cs
- SmtpNegotiateAuthenticationModule.cs
- TransformedBitmap.cs
- CheckBox.cs
- SizeAnimationClockResource.cs
- SpeakCompletedEventArgs.cs
- QueryCacheEntry.cs
- IndexedEnumerable.cs
- TableColumnCollectionInternal.cs
- GeometryGroup.cs
- ColumnMapVisitor.cs
- CodeDOMUtility.cs
- EventItfInfo.cs
- CompiledELinqQueryState.cs
- MailHeaderInfo.cs
- SqlAliasesReferenced.cs
- ProfileSettingsCollection.cs
- ReflectEventDescriptor.cs
- InstanceOwnerException.cs
- SetterBaseCollection.cs
- AssemblyCache.cs
- TdsEnums.cs
- IsolatedStorage.cs
- XmlRootAttribute.cs
- CollectionChangeEventArgs.cs
- GridViewColumnHeaderAutomationPeer.cs
- LinqTreeNodeEvaluator.cs
- XhtmlBasicLabelAdapter.cs
- ModuleBuilderData.cs
- ClientUrlResolverWrapper.cs
- ConnectorSelectionGlyph.cs
- PageSetupDialog.cs
- AutomationAttributeInfo.cs
- EventProviderWriter.cs
- XsdBuildProvider.cs
- VBCodeProvider.cs
- Transaction.cs
- AdjustableArrowCap.cs
- _SingleItemRequestCache.cs
- KeyboardNavigation.cs
- LazyTextWriterCreator.cs
- FileReservationCollection.cs
- Token.cs
- PolyBezierSegment.cs
- ReflectionUtil.cs
- NumericPagerField.cs
- FixedSOMContainer.cs
- ExpressionParser.cs
- AttributeQuery.cs
- XmlArrayItemAttributes.cs
- LinkArea.cs
- StringDictionary.cs
- CodeAttachEventStatement.cs
- FormViewPageEventArgs.cs
- RuntimeConfigLKG.cs
- CurrentChangingEventArgs.cs
- SqlDataSourceCache.cs
- RedBlackList.cs
- TrustManager.cs
- HwndMouseInputProvider.cs
- NonVisualControlAttribute.cs
- PrivilegedConfigurationManager.cs
- HyperLinkColumn.cs
- FileRecordSequenceHelper.cs
- X509Certificate.cs
- Byte.cs
- BitSet.cs
- OneOfConst.cs
- GuidTagList.cs
- ReferencedCollectionType.cs
- XmlUtf8RawTextWriter.cs
- CacheDict.cs
- HtmlInputHidden.cs
- TabPage.cs
- SchemaNamespaceManager.cs
- _NativeSSPI.cs
- RsaKeyIdentifierClause.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- UpdateCompiler.cs
- ADConnectionHelper.cs
- DetailsViewRow.cs
- _SslState.cs
- bindurihelper.cs
- wmiprovider.cs
- SqlDataSourceQueryEditorForm.cs
- TextCompositionEventArgs.cs
- Path.cs
- InputReferenceExpression.cs
- IISUnsafeMethods.cs
- clipboard.cs
- WindowsFormsHelpers.cs
- QueryOptionExpression.cs