Code:
/ FX-1434 / FX-1434 / 1.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
- OdbcUtils.cs
- EntityDataSourceWrapperCollection.cs
- FillRuleValidation.cs
- ResourceContainer.cs
- WebPartHelpVerb.cs
- InkSerializer.cs
- StaticResourceExtension.cs
- BindingManagerDataErrorEventArgs.cs
- xsdvalidator.cs
- InlinedAggregationOperator.cs
- NativeMethods.cs
- UIInitializationException.cs
- TextSearch.cs
- XmlBinaryWriterSession.cs
- RuntimeTransactionHandle.cs
- TogglePattern.cs
- PrintPreviewDialog.cs
- Model3D.cs
- SafeSystemMetrics.cs
- UserPreferenceChangedEventArgs.cs
- WebBrowserSiteBase.cs
- TreeViewEvent.cs
- ResourceExpressionBuilder.cs
- CollectionViewGroupInternal.cs
- OptimizedTemplateContentHelper.cs
- RegexMatch.cs
- HScrollBar.cs
- StandardBindingElementCollection.cs
- DuplicateMessageDetector.cs
- SHA384.cs
- DnsPermission.cs
- StrokeFIndices.cs
- TransportSecurityHelpers.cs
- ForwardPositionQuery.cs
- EventLogQuery.cs
- HashHelper.cs
- PointConverter.cs
- XamlReaderHelper.cs
- AssertHelper.cs
- Animatable.cs
- UnauthorizedWebPart.cs
- ipaddressinformationcollection.cs
- ContextProperty.cs
- RoleServiceManager.cs
- HitTestParameters.cs
- NonSerializedAttribute.cs
- AnnotationResource.cs
- CapabilitiesUse.cs
- AuthenticatedStream.cs
- XmlSchemaIdentityConstraint.cs
- SamlConditions.cs
- BooleanSwitch.cs
- HttpModuleAction.cs
- WeakReference.cs
- HitTestFilterBehavior.cs
- FontDifferentiator.cs
- AppDomainResourcePerfCounters.cs
- UseManagedPresentationBindingElementImporter.cs
- AuthenticationManager.cs
- Utility.cs
- ItemsControl.cs
- VisualBrush.cs
- CLSCompliantAttribute.cs
- TextTreeTextElementNode.cs
- WebService.cs
- SortExpressionBuilder.cs
- httpapplicationstate.cs
- CookielessHelper.cs
- TableSectionStyle.cs
- TextPenaltyModule.cs
- odbcmetadatafactory.cs
- UrlAuthFailedErrorFormatter.cs
- NamespaceQuery.cs
- TextHidden.cs
- WebControl.cs
- CheckBoxFlatAdapter.cs
- DefaultPrintController.cs
- HtmlControlDesigner.cs
- IssuerInformation.cs
- WebBrowserHelper.cs
- Line.cs
- DrawingVisual.cs
- PolyLineSegment.cs
- returneventsaver.cs
- DataGridViewIntLinkedList.cs
- ProtectedConfigurationSection.cs
- PointLightBase.cs
- PropertyEntry.cs
- MemberDomainMap.cs
- DiagnosticsConfigurationHandler.cs
- ColorConverter.cs
- CaseStatementSlot.cs
- SourceSwitch.cs
- BulletedList.cs
- TextTreeRootNode.cs
- ContentElementAutomationPeer.cs
- OracleRowUpdatingEventArgs.cs
- StringToken.cs
- PersistenceProviderFactory.cs
- RegexCompiler.cs