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
- DiscreteKeyFrames.cs
- WindowsFormsSynchronizationContext.cs
- ClassHandlersStore.cs
- StatusBarDrawItemEvent.cs
- EmptyElement.cs
- Util.cs
- ProfileServiceManager.cs
- SQLByteStorage.cs
- TCEAdapterGenerator.cs
- DefaultEventAttribute.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- DependentList.cs
- DataTable.cs
- WebPartCollection.cs
- TypeConverterBase.cs
- Focus.cs
- SettingsPropertyCollection.cs
- InvokePattern.cs
- SettingsProperty.cs
- AvTraceFormat.cs
- PointKeyFrameCollection.cs
- OAVariantLib.cs
- FontDriver.cs
- WebPartDisplayModeEventArgs.cs
- SafeCertificateStore.cs
- BuildProvider.cs
- DebuggerAttributes.cs
- RequestCacheEntry.cs
- ProvideValueServiceProvider.cs
- QilGeneratorEnv.cs
- EditorAttributeInfo.cs
- TextServicesManager.cs
- Property.cs
- MetafileHeader.cs
- MgmtResManager.cs
- ComponentEditorForm.cs
- TreeViewHitTestInfo.cs
- Imaging.cs
- OpCopier.cs
- HwndHostAutomationPeer.cs
- EventLogEntryCollection.cs
- QueryCacheKey.cs
- TransactionFlowBindingElementImporter.cs
- ObjectItemAttributeAssemblyLoader.cs
- SyndicationSerializer.cs
- CounterCreationDataCollection.cs
- SemanticTag.cs
- MulticastNotSupportedException.cs
- TextTreeInsertElementUndoUnit.cs
- DomainUpDown.cs
- NotCondition.cs
- InstanceHandleReference.cs
- BoundPropertyEntry.cs
- XmlSchemaInfo.cs
- Verify.cs
- WebPartZoneDesigner.cs
- MenuTracker.cs
- SelectionRange.cs
- Polygon.cs
- HierarchicalDataBoundControl.cs
- RequestSecurityToken.cs
- StorageConditionPropertyMapping.cs
- EdmSchemaError.cs
- assemblycache.cs
- ClipboardProcessor.cs
- SiteMapDataSource.cs
- HyperLinkColumn.cs
- AccessDataSource.cs
- RsaSecurityTokenParameters.cs
- Control.cs
- LogAppendAsyncResult.cs
- CrossSiteScriptingValidation.cs
- ImageCollectionEditor.cs
- ObjectHandle.cs
- PlainXmlWriter.cs
- HScrollBar.cs
- PtsCache.cs
- ToolboxBitmapAttribute.cs
- LinqDataSource.cs
- ReadOnlyDataSource.cs
- EnumBuilder.cs
- ConfigurationManagerInternalFactory.cs
- RuntimeConfigLKG.cs
- UnhandledExceptionEventArgs.cs
- DataMemberConverter.cs
- altserialization.cs
- DataGridViewBindingCompleteEventArgs.cs
- HtmlInputPassword.cs
- ADRole.cs
- MetricEntry.cs
- DbDataSourceEnumerator.cs
- SyndicationPerson.cs
- PtsCache.cs
- SHA1CryptoServiceProvider.cs
- WebPartZone.cs
- WebFaultException.cs
- Int32AnimationUsingKeyFrames.cs
- NumberFunctions.cs
- _NegotiateClient.cs
- CodeSnippetCompileUnit.cs