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
- CopyNodeSetAction.cs
- RedistVersionInfo.cs
- WindowsComboBox.cs
- BuildResultCache.cs
- SourceFileBuildProvider.cs
- Guid.cs
- EventLogger.cs
- WhitespaceSignificantCollectionAttribute.cs
- IntegrationExceptionEventArgs.cs
- JournalEntryStack.cs
- RedirectionProxy.cs
- DataControlButton.cs
- ProtocolElement.cs
- QueryOptionExpression.cs
- DataViewSettingCollection.cs
- Table.cs
- Reference.cs
- ListBox.cs
- TrackingProfile.cs
- templategroup.cs
- TransformPattern.cs
- TiffBitmapEncoder.cs
- MethodExpr.cs
- X500Name.cs
- Point3DAnimation.cs
- SortableBindingList.cs
- DbgUtil.cs
- SecurityContext.cs
- XmlDocumentType.cs
- RoleGroupCollectionEditor.cs
- _RequestCacheProtocol.cs
- ColumnBinding.cs
- mediaeventargs.cs
- RepeaterItemEventArgs.cs
- ServicePoint.cs
- EventMappingSettingsCollection.cs
- DiagnosticTraceSource.cs
- PropertyDescriptorCollection.cs
- SmiSettersStream.cs
- TcpProcessProtocolHandler.cs
- WindowsRichEditRange.cs
- UserMapPath.cs
- MemberDomainMap.cs
- PrimitiveType.cs
- AutomationPropertyInfo.cs
- HtmlMeta.cs
- TextAnchor.cs
- IteratorFilter.cs
- ClickablePoint.cs
- BreakRecordTable.cs
- Property.cs
- EntityDataSourceWrapperCollection.cs
- ADMembershipProvider.cs
- VisualStateManager.cs
- XmlSchemaSimpleContent.cs
- MemberJoinTreeNode.cs
- HtmlToClrEventProxy.cs
- DelegateSerializationHolder.cs
- DPAPIProtectedConfigurationProvider.cs
- TextSelection.cs
- ElementNotAvailableException.cs
- ContactManager.cs
- RadioButton.cs
- ApplicationGesture.cs
- DecimalStorage.cs
- KeyEvent.cs
- XmlWrappingWriter.cs
- InstanceLockTracking.cs
- CollectionViewGroup.cs
- ConfigurationValue.cs
- SmtpReplyReaderFactory.cs
- NameSpaceExtractor.cs
- OleDbParameter.cs
- Recipient.cs
- XmlSchemaSequence.cs
- RenamedEventArgs.cs
- HttpStreamXmlDictionaryWriter.cs
- ParameterToken.cs
- CategoryNameCollection.cs
- BaseHashHelper.cs
- LocationSectionRecord.cs
- MethodAccessException.cs
- HwndHost.cs
- DuplicateWaitObjectException.cs
- EDesignUtil.cs
- ConsoleTraceListener.cs
- ErasingStroke.cs
- SoapIncludeAttribute.cs
- KeyProperty.cs
- WebPartVerbsEventArgs.cs
- SecurityAlgorithmSuite.cs
- X509ChainPolicy.cs
- AssemblyResourceLoader.cs
- TextSelectionProcessor.cs
- OptimalBreakSession.cs
- SimpleLine.cs
- Content.cs
- RtfToXamlLexer.cs
- StringAnimationBase.cs
- HelpKeywordAttribute.cs