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
- CodeSnippetTypeMember.cs
- SerialErrors.cs
- SchemaCreator.cs
- TiffBitmapDecoder.cs
- VideoDrawing.cs
- MetaDataInfo.cs
- FormsAuthenticationEventArgs.cs
- TransformCryptoHandle.cs
- NamespaceList.cs
- BuildProviderAppliesToAttribute.cs
- wgx_exports.cs
- Setter.cs
- MatchSingleFxEngineOpcode.cs
- DodSequenceMerge.cs
- ToolboxBitmapAttribute.cs
- DllHostInitializer.cs
- TextServicesDisplayAttribute.cs
- DbCommandDefinition.cs
- MobileControlDesigner.cs
- XamlDesignerSerializationManager.cs
- OperandQuery.cs
- TypeLibConverter.cs
- SettingsProperty.cs
- WindowsStartMenu.cs
- LinqDataSourceStatusEventArgs.cs
- HtmlAnchor.cs
- SizeConverter.cs
- XmlDataImplementation.cs
- ClosableStream.cs
- SmiEventStream.cs
- CharacterString.cs
- AsyncCallback.cs
- RequestStatusBarUpdateEventArgs.cs
- EntityClientCacheEntry.cs
- SaveFileDialog.cs
- ComplexPropertyEntry.cs
- BindingMAnagerBase.cs
- AsyncResult.cs
- Matrix3D.cs
- Int32AnimationUsingKeyFrames.cs
- TargetControlTypeAttribute.cs
- UriSectionData.cs
- SoapElementAttribute.cs
- CatalogPartDesigner.cs
- StyleSelector.cs
- CompressStream.cs
- AuthenticatingEventArgs.cs
- ResourcePool.cs
- XsltOutput.cs
- Fx.cs
- QueryCreatedEventArgs.cs
- WindowsUpDown.cs
- FixedSOMTextRun.cs
- LostFocusEventManager.cs
- SecurityUtils.cs
- TypedReference.cs
- RayMeshGeometry3DHitTestResult.cs
- RegionInfo.cs
- ServiceInfo.cs
- XPathMultyIterator.cs
- ErrorHandler.cs
- ToolStripAdornerWindowService.cs
- DataGridViewToolTip.cs
- BoolExpression.cs
- MemberPathMap.cs
- DependencyPropertyChangedEventArgs.cs
- SqlCaseSimplifier.cs
- LinqDataSourceInsertEventArgs.cs
- HttpClientProtocol.cs
- VScrollBar.cs
- ConnectionManagementElementCollection.cs
- ScriptManagerProxy.cs
- ThreadSafeMessageFilterTable.cs
- ListViewCommandEventArgs.cs
- CancellationHandlerDesigner.cs
- HttpProxyCredentialType.cs
- DataKeyArray.cs
- HostedHttpContext.cs
- SectionUpdates.cs
- WorkItem.cs
- ExtendedProtectionPolicyTypeConverter.cs
- SystemEvents.cs
- HScrollBar.cs
- DeviceContext2.cs
- XsdValidatingReader.cs
- WindowAutomationPeer.cs
- GeneralTransform.cs
- DoubleAnimation.cs
- ModelPropertyImpl.cs
- SqlPersonalizationProvider.cs
- RelationshipNavigation.cs
- ActivityLocationReferenceEnvironment.cs
- IdleTimeoutMonitor.cs
- GridView.cs
- TransformGroup.cs
- HwndTarget.cs
- XamlReader.cs
- ConfigurationSectionGroupCollection.cs
- GeneralTransform3DGroup.cs
- XmlToDatasetMap.cs