Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / NetworkInformation / NetworkInterface.cs / 1 / NetworkInterface.cs
using System; namespace System.Net.NetworkInformation { public abstract class NetworkInterface { /// Returns objects that describe the network interfaces on the local computer. public static NetworkInterface[] GetAllNetworkInterfaces(){ (new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand(); return SystemNetworkInterface.GetNetworkInterfaces(); } public static bool GetIsNetworkAvailable(){ return SystemNetworkInterface.InternalGetIsNetworkAvailable(); } public static int LoopbackInterfaceIndex{ get{ return SystemNetworkInterface.InternalLoopbackInterfaceIndex; } } public abstract string Id{get;} /// Gets the name of the network interface. public abstract string Name{get;} /// Gets the description of the network interface public abstract string Description{get;} /// Gets the IP properties for this network interface. public abstract IPInterfaceProperties GetIPProperties(); /// Provides Internet Protocol (IP) statistical data for thisnetwork interface. public abstract IPv4InterfaceStatistics GetIPv4Statistics(); /// Gets the current operational state of the network connection. public abstract OperationalStatus OperationalStatus{get;} /// Gets the speed of the interface in bits per second as reported by the interface. public abstract long Speed{get;} /// Gets a bool value that indicates whether the network interface is set to only receive data packets. public abstract bool IsReceiveOnly{get;} /// Gets a bool value that indicates whether this network interface is enabled to receive multicast packets. public abstract bool SupportsMulticast{get;} /// Gets the physical address of this network interface /// deonb. This is okay if you don't support this in Whidbey. This actually belongs in the NetworkAdapter derived class public abstract PhysicalAddress GetPhysicalAddress(); /// Gets the interface type. public abstract NetworkInterfaceType NetworkInterfaceType{get;} public abstract bool Supports(NetworkInterfaceComponent networkInterfaceComponent); } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MsmqUri.cs
- ProviderManager.cs
- PropertyChangingEventArgs.cs
- ColumnHeader.cs
- DataGridViewSortCompareEventArgs.cs
- WebBrowser.cs
- MSG.cs
- Variant.cs
- Clause.cs
- InputMethodStateChangeEventArgs.cs
- MdImport.cs
- HttpTransportBindingElement.cs
- CultureMapper.cs
- DesignerTextBoxAdapter.cs
- HtmlTextBoxAdapter.cs
- AuthStoreRoleProvider.cs
- BuiltInExpr.cs
- GenerateDerivedKeyRequest.cs
- UndirectedGraph.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- XmlMembersMapping.cs
- RectangleHotSpot.cs
- Column.cs
- ScriptReferenceEventArgs.cs
- PassportAuthenticationModule.cs
- BaseComponentEditor.cs
- TextRangeEditTables.cs
- GridViewColumnHeaderAutomationPeer.cs
- CompositeCollectionView.cs
- ListViewUpdateEventArgs.cs
- SQLInt16Storage.cs
- SerializationStore.cs
- OracleConnectionFactory.cs
- GeneralTransform2DTo3D.cs
- IISUnsafeMethods.cs
- OptimizerPatterns.cs
- StructuralObject.cs
- CustomErrorsSection.cs
- Types.cs
- AnnotationStore.cs
- ShaperBuffers.cs
- DataServiceQuery.cs
- PieceDirectory.cs
- TypeCollectionDesigner.xaml.cs
- DoubleCollectionConverter.cs
- StringFunctions.cs
- BoolExpressionVisitors.cs
- XPathDocumentIterator.cs
- ListDictionaryInternal.cs
- DataRelation.cs
- CollectionViewGroup.cs
- CommandEventArgs.cs
- Win32Exception.cs
- NumericUpDownAccelerationCollection.cs
- BamlVersionHeader.cs
- ApplicationException.cs
- MediaElementAutomationPeer.cs
- EdgeModeValidation.cs
- SqlSelectStatement.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- BreakSafeBase.cs
- StreamInfo.cs
- XmlEncApr2001.cs
- HttpProcessUtility.cs
- DataRowCollection.cs
- ForwardPositionQuery.cs
- UriParserTemplates.cs
- InputDevice.cs
- DynamicPropertyReader.cs
- FeatureSupport.cs
- QilValidationVisitor.cs
- SubstitutionList.cs
- ReturnEventArgs.cs
- SafeArrayRankMismatchException.cs
- OleDbWrapper.cs
- AppDomainShutdownMonitor.cs
- XsdDuration.cs
- Bidi.cs
- XmlDictionaryReaderQuotas.cs
- ScriptingWebServicesSectionGroup.cs
- ListCollectionView.cs
- _ConnectionGroup.cs
- DrawListViewSubItemEventArgs.cs
- TypeExtensions.cs
- Baml2006ReaderFrame.cs
- CharStorage.cs
- UnknownBitmapDecoder.cs
- SiteMapDesignerDataSourceView.cs
- DateTimeConverter.cs
- RoutedEventArgs.cs
- TreeViewImageKeyConverter.cs
- NonBatchDirectoryCompiler.cs
- EpmSyndicationContentSerializer.cs
- CompositeControl.cs
- PrintControllerWithStatusDialog.cs
- CalculatedColumn.cs
- TextContainerHelper.cs
- AsyncResult.cs
- XmlSubtreeReader.cs
- IdentifierElement.cs