Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IconEditor.cs
- ArgumentException.cs
- LineServices.cs
- XsltContext.cs
- XmlHierarchicalEnumerable.cs
- WebPartCancelEventArgs.cs
- DataTable.cs
- OdbcInfoMessageEvent.cs
- TrustManagerMoreInformation.cs
- TransformCollection.cs
- DocumentationServerProtocol.cs
- ObjectDisposedException.cs
- WorkflowRuntimeBehavior.cs
- ApplicationFileParser.cs
- MergablePropertyAttribute.cs
- DrawingGroup.cs
- MessageAction.cs
- CompositeFontParser.cs
- PageMediaType.cs
- InputMethod.cs
- ImportContext.cs
- DataGridViewCellCancelEventArgs.cs
- Screen.cs
- FixedSOMTextRun.cs
- Parser.cs
- TemplateControl.cs
- ObjectConverter.cs
- ComponentChangedEvent.cs
- diagnosticsswitches.cs
- ViewBase.cs
- RenderData.cs
- NavigationCommands.cs
- SecUtil.cs
- MaskDesignerDialog.cs
- HttpApplication.cs
- BaseProcessor.cs
- ScriptControlDescriptor.cs
- SortQuery.cs
- CopyAction.cs
- ExpressionBuilderContext.cs
- VirtualDirectoryMapping.cs
- CopyAttributesAction.cs
- IsolationInterop.cs
- UserControlAutomationPeer.cs
- QilStrConcatenator.cs
- DebugView.cs
- DataGridRow.cs
- CodeDOMProvider.cs
- FillErrorEventArgs.cs
- HtmlInputControl.cs
- BitmapSource.cs
- SequenceDesigner.xaml.cs
- SharedStream.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- CalendarModeChangedEventArgs.cs
- KeyBinding.cs
- OleDbPropertySetGuid.cs
- RowBinding.cs
- ObjectContext.cs
- UserCancellationException.cs
- RequestCacheManager.cs
- InternalPermissions.cs
- TraceListener.cs
- DispatchChannelSink.cs
- ToolboxDataAttribute.cs
- SizeFConverter.cs
- SurrogateEncoder.cs
- CalendarAutoFormat.cs
- KeyProperty.cs
- Context.cs
- FindProgressChangedEventArgs.cs
- DbCommandDefinition.cs
- XmlSignatureManifest.cs
- BounceEase.cs
- RootBrowserWindowProxy.cs
- WebPartConnectionsCloseVerb.cs
- KeyboardNavigation.cs
- HttpProfileGroupBase.cs
- complextypematerializer.cs
- WebZone.cs
- _NTAuthentication.cs
- RequestUriProcessor.cs
- PageContentCollection.cs
- XmlChoiceIdentifierAttribute.cs
- MarkupProperty.cs
- AuthenticationServiceManager.cs
- IgnoreSection.cs
- TreeNodeEventArgs.cs
- StringCollectionMarkupSerializer.cs
- ReflectionTypeLoadException.cs
- DocumentSchemaValidator.cs
- XPathDescendantIterator.cs
- DispatcherObject.cs
- CodeIdentifiers.cs
- KeyTime.cs
- SelectionUIService.cs
- BaseCollection.cs
- TagPrefixCollection.cs
- TextAutomationPeer.cs
- LockRecoveryTask.cs