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
- cryptoapiTransform.cs
- WorkflowRuntimeService.cs
- CodeVariableDeclarationStatement.cs
- DispatcherEventArgs.cs
- XhtmlConformanceSection.cs
- Bidi.cs
- TextRunCache.cs
- XmlSerializationReader.cs
- ToolStripTextBox.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- ServiceBehaviorElement.cs
- RuntimeEnvironment.cs
- Query.cs
- Int64Animation.cs
- ObjectDesignerDataSourceView.cs
- ObservableDictionary.cs
- LambdaCompiler.Logical.cs
- FileSystemEnumerable.cs
- XComponentModel.cs
- DataGridItemEventArgs.cs
- CompositeCollection.cs
- ConfigurationSection.cs
- NumericExpr.cs
- CodeIterationStatement.cs
- PageCodeDomTreeGenerator.cs
- XmlTypeAttribute.cs
- dtdvalidator.cs
- DeadCharTextComposition.cs
- C14NUtil.cs
- TraceFilter.cs
- Rules.cs
- ThicknessKeyFrameCollection.cs
- IndicFontClient.cs
- PopupEventArgs.cs
- PartialCachingAttribute.cs
- WindowInteropHelper.cs
- MimeTypeAttribute.cs
- OutputCacheSettings.cs
- ValidationError.cs
- ConnectionManagementSection.cs
- DtrList.cs
- SurrogateSelector.cs
- DataKey.cs
- SafeFreeMibTable.cs
- ProviderConnectionPointCollection.cs
- SwitchElementsCollection.cs
- HandlerBase.cs
- SelectionPattern.cs
- Utils.cs
- ControlBuilder.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- Matrix3D.cs
- MessageBox.cs
- ByteKeyFrameCollection.cs
- AuthorizationRule.cs
- SchemaManager.cs
- MarkerProperties.cs
- CalendarDateChangedEventArgs.cs
- TypeExtensionConverter.cs
- FrameworkContentElement.cs
- DescendentsWalker.cs
- XsdDataContractImporter.cs
- FilteredAttributeCollection.cs
- OperationSelectorBehavior.cs
- StorageInfo.cs
- SqlGatherConsumedAliases.cs
- BooleanKeyFrameCollection.cs
- RepeatButton.cs
- SafeNativeMethods.cs
- SamlAttribute.cs
- formatter.cs
- TraceContextRecord.cs
- HierarchicalDataSourceControl.cs
- SerializableAttribute.cs
- TypeConverterAttribute.cs
- ComponentManagerBroker.cs
- SymmetricAlgorithm.cs
- ErrorHandlingReceiver.cs
- Classification.cs
- PropagationProtocolsTracing.cs
- PolicyStatement.cs
- ListViewItemCollectionEditor.cs
- ProviderBase.cs
- PassportAuthenticationEventArgs.cs
- RuleSetDialog.cs
- AsyncDataRequest.cs
- DesignerVerbCollection.cs
- _DomainName.cs
- TypeSystem.cs
- HitTestParameters3D.cs
- ClickablePoint.cs
- ExpressionBindings.cs
- PropertyGroupDescription.cs
- PopOutPanel.cs
- CopyEncoder.cs
- FontEmbeddingManager.cs
- ElementProxy.cs
- WindowsTooltip.cs
- OTFRasterizer.cs
- List.cs