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
- StringBuilder.cs
- PersistChildrenAttribute.cs
- Speller.cs
- MouseGestureConverter.cs
- safex509handles.cs
- MaterialCollection.cs
- WinFormsSecurity.cs
- GridErrorDlg.cs
- StringStorage.cs
- _LocalDataStore.cs
- ToolStripSystemRenderer.cs
- DbSetClause.cs
- PropertyDescriptorComparer.cs
- ExpressionDumper.cs
- WebInvokeAttribute.cs
- FieldBuilder.cs
- CachedRequestParams.cs
- GeneralTransform3DGroup.cs
- GridEntry.cs
- DrawTreeNodeEventArgs.cs
- TextServicesContext.cs
- PointHitTestResult.cs
- URLMembershipCondition.cs
- PathFigureCollectionConverter.cs
- AnnotationHelper.cs
- ParentUndoUnit.cs
- WebPartAuthorizationEventArgs.cs
- StackOverflowException.cs
- XmlHierarchicalEnumerable.cs
- HandleCollector.cs
- SessionParameter.cs
- StartUpEventArgs.cs
- Slider.cs
- WindowsIdentity.cs
- CustomErrorCollection.cs
- ChildTable.cs
- SID.cs
- BuilderPropertyEntry.cs
- WindowsListViewGroupHelper.cs
- UrlPropertyAttribute.cs
- XmlSchemaSequence.cs
- ConsumerConnectionPointCollection.cs
- LinkLabel.cs
- FileLogRecordEnumerator.cs
- StickyNote.cs
- XmlEntity.cs
- CrossAppDomainChannel.cs
- DbRetry.cs
- ColumnResult.cs
- WebZone.cs
- updateconfighost.cs
- SafeProcessHandle.cs
- Menu.cs
- COM2EnumConverter.cs
- InlineUIContainer.cs
- MessageDispatch.cs
- Maps.cs
- PartialList.cs
- DispatcherHookEventArgs.cs
- ComboBoxAutomationPeer.cs
- MediaPlayer.cs
- Point3DCollectionConverter.cs
- xamlnodes.cs
- FastEncoderWindow.cs
- PrintEvent.cs
- clipboard.cs
- TextBoxBase.cs
- String.cs
- DeclarativeExpressionConditionDeclaration.cs
- WorkflowApplicationIdleEventArgs.cs
- LinkButton.cs
- Size.cs
- NonDualMessageSecurityOverHttpElement.cs
- XmlSchemaImporter.cs
- JsonDeserializer.cs
- FontNameEditor.cs
- COAUTHINFO.cs
- WebPartDescription.cs
- PageCodeDomTreeGenerator.cs
- CopyOnWriteList.cs
- DataGridViewCellMouseEventArgs.cs
- FilterElement.cs
- DBDataPermission.cs
- UnknownBitmapEncoder.cs
- IDispatchConstantAttribute.cs
- RenamedEventArgs.cs
- CodeTypeMemberCollection.cs
- SubpageParaClient.cs
- SystemSounds.cs
- TemplateControlBuildProvider.cs
- StringBuilder.cs
- FlowDocumentScrollViewer.cs
- BaseCodeDomTreeGenerator.cs
- BooleanProjectedSlot.cs
- WebPartEditVerb.cs
- DataRelationCollection.cs
- CollectionView.cs
- QuotedPrintableStream.cs
- ListItemConverter.cs
- WebCategoryAttribute.cs