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
- PerformanceCounters.cs
- SiteOfOriginContainer.cs
- StylusPointPropertyId.cs
- CapabilitiesRule.cs
- EnumMember.cs
- StrokeIntersection.cs
- HyperLinkColumn.cs
- OperandQuery.cs
- DownloadProgressEventArgs.cs
- DocumentViewerBase.cs
- SvcMapFileSerializer.cs
- DataGridViewRowCollection.cs
- LineProperties.cs
- DecimalKeyFrameCollection.cs
- SqlServer2KCompatibilityCheck.cs
- ReliableInputConnection.cs
- HttpCacheParams.cs
- ContextQuery.cs
- Int32Animation.cs
- GridEntry.cs
- CodeTypeMemberCollection.cs
- Quaternion.cs
- ServiceThrottlingElement.cs
- ListViewInsertionMark.cs
- UIElement3D.cs
- Padding.cs
- UpDownEvent.cs
- SmiSettersStream.cs
- EnumBuilder.cs
- WSSecurityPolicy11.cs
- Random.cs
- SecondaryViewProvider.cs
- KeyedCollection.cs
- Metafile.cs
- ParameterElement.cs
- MediaPlayer.cs
- AsymmetricKeyExchangeDeformatter.cs
- ThemeDictionaryExtension.cs
- SimpleFieldTemplateFactory.cs
- UndoManager.cs
- FirstMatchCodeGroup.cs
- CompositionDesigner.cs
- OleDbPermission.cs
- StrokeNodeOperations2.cs
- MobileControlsSectionHandler.cs
- AttributeQuery.cs
- DbProviderServices.cs
- KnowledgeBase.cs
- SystemIPAddressInformation.cs
- DecimalStorage.cs
- InstanceHandle.cs
- ObjectHelper.cs
- WebHttpElement.cs
- SendMailErrorEventArgs.cs
- BrowserCapabilitiesFactory.cs
- fixedPageContentExtractor.cs
- RuleSettingsCollection.cs
- MultipleViewPattern.cs
- DataSetViewSchema.cs
- TypeListConverter.cs
- FrameworkTextComposition.cs
- ComEventsInfo.cs
- SetIndexBinder.cs
- NativeMethods.cs
- XmlSignificantWhitespace.cs
- InstanceData.cs
- NetworkStream.cs
- StringWriter.cs
- RepeatButton.cs
- EmptyQuery.cs
- FormsAuthenticationEventArgs.cs
- PrintDialog.cs
- RichTextBox.cs
- NotifyInputEventArgs.cs
- DragDeltaEventArgs.cs
- NumberFormatter.cs
- BinaryObjectReader.cs
- XPathNodeInfoAtom.cs
- HttpHeaderCollection.cs
- MaterialGroup.cs
- WindowsListViewScroll.cs
- CharKeyFrameCollection.cs
- ContentElement.cs
- SystemIcmpV4Statistics.cs
- DesignTimeTemplateParser.cs
- ResourcePart.cs
- CommandSet.cs
- remotingproxy.cs
- QueryAsyncResult.cs
- Helpers.cs
- ContentPropertyAttribute.cs
- XmlObjectSerializerContext.cs
- ClientCultureInfo.cs
- TaskCanceledException.cs
- Win32.cs
- SqlDataSourceFilteringEventArgs.cs
- OdbcErrorCollection.cs
- DataService.cs
- WebBrowserNavigatingEventHandler.cs
- ContactManager.cs