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
- ScriptReference.cs
- OneOfElement.cs
- ImageButton.cs
- EdmError.cs
- ModelPerspective.cs
- ServiceDeploymentInfo.cs
- TextRenderer.cs
- BitmapVisualManager.cs
- EventLogPermissionEntryCollection.cs
- XmlSchemaNotation.cs
- ZoomPercentageConverter.cs
- SystemWebCachingSectionGroup.cs
- RootProfilePropertySettingsCollection.cs
- QuadraticEase.cs
- safemediahandle.cs
- DataGridPagerStyle.cs
- Exception.cs
- TagNameToTypeMapper.cs
- _LoggingObject.cs
- NotSupportedException.cs
- ConsoleCancelEventArgs.cs
- SqlStatistics.cs
- BooleanToVisibilityConverter.cs
- SystemColors.cs
- elementinformation.cs
- CultureInfo.cs
- FontStretchConverter.cs
- _FtpDataStream.cs
- Activator.cs
- LineUtil.cs
- ChangeDirector.cs
- Enum.cs
- XNodeSchemaApplier.cs
- TrackingExtract.cs
- AmbientProperties.cs
- BCryptNative.cs
- BookmarkEventArgs.cs
- CurrentChangedEventManager.cs
- ResourceExpression.cs
- FrameSecurityDescriptor.cs
- SafeSecurityHandles.cs
- UInt16Converter.cs
- ControlBuilderAttribute.cs
- DateTimeOffsetAdapter.cs
- NameHandler.cs
- NavigatorInput.cs
- SymbolUsageManager.cs
- ContentOperations.cs
- BitmapCodecInfoInternal.cs
- StringArrayConverter.cs
- SqlCommandBuilder.cs
- RowsCopiedEventArgs.cs
- HelpFileFileNameEditor.cs
- MenuAdapter.cs
- WorkItem.cs
- HyperlinkAutomationPeer.cs
- SQLInt64Storage.cs
- ProcessRequestArgs.cs
- LinqDataSourceView.cs
- PeerNameResolver.cs
- AdapterDictionary.cs
- iisPickupDirectory.cs
- XmlEntity.cs
- CodeCastExpression.cs
- LineServicesRun.cs
- BezierSegment.cs
- AsyncResult.cs
- Currency.cs
- Page.cs
- ObjectItemAssemblyLoader.cs
- ForAllOperator.cs
- SafeRightsManagementQueryHandle.cs
- DiscreteKeyFrames.cs
- Span.cs
- HitTestWithPointDrawingContextWalker.cs
- HashHelper.cs
- Graphics.cs
- SingleQueryOperator.cs
- MailDefinitionBodyFileNameEditor.cs
- ObjectAssociationEndMapping.cs
- FontInfo.cs
- DialogResultConverter.cs
- X509Extension.cs
- Evaluator.cs
- MemoryFailPoint.cs
- EastAsianLunisolarCalendar.cs
- DaylightTime.cs
- ParameterCollection.cs
- PropertyKey.cs
- ComplexTypeEmitter.cs
- ProxyWebPartConnectionCollection.cs
- typedescriptorpermissionattribute.cs
- ServiceSecurityAuditElement.cs
- ScriptingJsonSerializationSection.cs
- DateTimeAutomationPeer.cs
- WindowCollection.cs
- DoubleAnimation.cs
- Decoder.cs
- Object.cs
- ContractBase.cs