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
- TypeLoadException.cs
- ManagementObject.cs
- OleDbConnectionInternal.cs
- ZipArchive.cs
- TypefaceCollection.cs
- ToolboxBitmapAttribute.cs
- ScriptReferenceBase.cs
- ProjectionPruner.cs
- Token.cs
- GenerateTemporaryTargetAssembly.cs
- RtType.cs
- MSAAEventDispatcher.cs
- SafeRegistryKey.cs
- HelpEvent.cs
- ConfigXmlReader.cs
- FontDifferentiator.cs
- GPRECTF.cs
- RowCache.cs
- TdsEnums.cs
- TimerEventSubscription.cs
- DecimalConstantAttribute.cs
- ApplicationInfo.cs
- StylusPointPropertyId.cs
- NamespaceDisplay.xaml.cs
- util.cs
- CodeGen.cs
- AuthenticatingEventArgs.cs
- ConnectionPoolManager.cs
- TypeUtil.cs
- ItemCollection.cs
- XslCompiledTransform.cs
- OutputCacheSettings.cs
- DoubleCollectionValueSerializer.cs
- SchemaEntity.cs
- LoginView.cs
- ToolboxBitmapAttribute.cs
- BitmapImage.cs
- SimpleBitVector32.cs
- SqlUDTStorage.cs
- PolicyDesigner.cs
- XmlFormatExtensionPrefixAttribute.cs
- TextRangeEditTables.cs
- GradientSpreadMethodValidation.cs
- LinkLabelLinkClickedEvent.cs
- UpDownEvent.cs
- SqlDataSourceEnumerator.cs
- TabControl.cs
- SmtpNtlmAuthenticationModule.cs
- Helpers.cs
- CookieProtection.cs
- XmlSchemaInclude.cs
- WebPartUserCapability.cs
- XmlExtensionFunction.cs
- MenuItemStyle.cs
- VariantWrapper.cs
- ViewEvent.cs
- DrawingImage.cs
- ValidationVisibilityAttribute.cs
- MenuItemCollection.cs
- PrivacyNoticeBindingElement.cs
- NativeMethods.cs
- WebHostUnsafeNativeMethods.cs
- XmlReaderSettings.cs
- WorkflowInstance.cs
- CssTextWriter.cs
- SystemColorTracker.cs
- SqlCaseSimplifier.cs
- X509Certificate2.cs
- EnvironmentPermission.cs
- HandleDictionary.cs
- DataSourceCache.cs
- XmlSchema.cs
- DataSourceDesigner.cs
- UserCancellationException.cs
- WsiProfilesElement.cs
- Page.cs
- Attribute.cs
- NotCondition.cs
- TypedDataSetSchemaImporterExtension.cs
- XamlSerializer.cs
- PathSegment.cs
- OpenTypeCommon.cs
- AllMembershipCondition.cs
- controlskin.cs
- Rotation3DAnimationBase.cs
- TextRangeEditLists.cs
- ClientSettingsProvider.cs
- _SSPIWrapper.cs
- TextSelectionHighlightLayer.cs
- DataChangedEventManager.cs
- MetadataItemSerializer.cs
- CacheMemory.cs
- SafeEventLogWriteHandle.cs
- SHA1Managed.cs
- SharedPerformanceCounter.cs
- OdbcConnectionHandle.cs
- ApplicationTrust.cs
- DbCommandTree.cs
- BinarySerializer.cs
- ForceCopyBuildProvider.cs