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
- TraceHandlerErrorFormatter.cs
- IdnMapping.cs
- NameScope.cs
- CollectionDataContract.cs
- ZipIOFileItemStream.cs
- TcpHostedTransportConfiguration.cs
- XmlAnyAttributeAttribute.cs
- UrlPropertyAttribute.cs
- PackagePartCollection.cs
- PrivacyNoticeBindingElementImporter.cs
- ButtonBaseAutomationPeer.cs
- BackStopAuthenticationModule.cs
- TableLayoutSettingsTypeConverter.cs
- DataGridViewColumn.cs
- DateTimeConverter2.cs
- GridViewDeletedEventArgs.cs
- App.cs
- MailBnfHelper.cs
- TextRunCache.cs
- RuleInfoComparer.cs
- UpdatePanel.cs
- AutomationElementCollection.cs
- ProgressiveCrcCalculatingStream.cs
- Int32Collection.cs
- AspCompat.cs
- QilPatternVisitor.cs
- AccessDataSourceDesigner.cs
- XsltSettings.cs
- CharAnimationBase.cs
- DrawingImage.cs
- MulticastDelegate.cs
- LogEntry.cs
- StyleBamlRecordReader.cs
- Int64AnimationUsingKeyFrames.cs
- LinkedList.cs
- DataGridItemCollection.cs
- AppDomainManager.cs
- assertwrapper.cs
- TypeConstant.cs
- GenericAuthenticationEventArgs.cs
- OpacityConverter.cs
- CornerRadiusConverter.cs
- ColorContext.cs
- CodeTypeDeclaration.cs
- ParserStack.cs
- MsmqUri.cs
- BookmarkScopeHandle.cs
- Console.cs
- ItemContainerGenerator.cs
- COMException.cs
- ProxyManager.cs
- DiffuseMaterial.cs
- HttpModuleCollection.cs
- VariableAction.cs
- CurrencyManager.cs
- SignatureHelper.cs
- FileLogRecordEnumerator.cs
- ForceCopyBuildProvider.cs
- CursorConverter.cs
- WebPartEditorCancelVerb.cs
- CorrelationValidator.cs
- DataGridViewCellCancelEventArgs.cs
- CodeAttributeArgument.cs
- StateMachineWorkflowInstance.cs
- ResourcePermissionBaseEntry.cs
- HtmlForm.cs
- DbConnectionStringCommon.cs
- updatecommandorderer.cs
- MetadataImporterQuotas.cs
- CursorConverter.cs
- XmlBindingWorker.cs
- EventMappingSettingsCollection.cs
- PtsHost.cs
- DesignerHelpers.cs
- DependentList.cs
- DispatcherObject.cs
- GridItem.cs
- FixedTextBuilder.cs
- TableStyle.cs
- AdapterDictionary.cs
- RoutedUICommand.cs
- UIInitializationException.cs
- ModelItem.cs
- RoutedEventArgs.cs
- connectionpool.cs
- Version.cs
- MailHeaderInfo.cs
- XmlSchemas.cs
- PropertyConverter.cs
- Addressing.cs
- CompilationUtil.cs
- BooleanConverter.cs
- HitTestDrawingContextWalker.cs
- ShaperBuffers.cs
- FieldAccessException.cs
- PlaceHolder.cs
- DataServiceQuery.cs
- Processor.cs
- GacUtil.cs
- XsdDataContractImporter.cs