Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ExceptionWrapper.cs
- PointLight.cs
- X509Certificate.cs
- FlowPosition.cs
- RemotingConfigParser.cs
- GlyphRunDrawing.cs
- WsatServiceAddress.cs
- InstalledVoice.cs
- BrowserCapabilitiesFactoryBase.cs
- TextElementEnumerator.cs
- GridItemPattern.cs
- Win32KeyboardDevice.cs
- Validator.cs
- PropertyPushdownHelper.cs
- LicFileLicenseProvider.cs
- DocumentGridPage.cs
- TextBoxView.cs
- GenericsInstances.cs
- TypeDependencyAttribute.cs
- WebPartConnectionCollection.cs
- Duration.cs
- XmlCountingReader.cs
- CachedBitmap.cs
- MulticastDelegate.cs
- DecoderFallback.cs
- PenThreadWorker.cs
- InternalCompensate.cs
- TaiwanCalendar.cs
- WindowsListViewGroup.cs
- ResourceDescriptionAttribute.cs
- DBCommandBuilder.cs
- MimeBasePart.cs
- RSAPKCS1SignatureDeformatter.cs
- Accessible.cs
- OleTxTransactionInfo.cs
- CustomPopupPlacement.cs
- ParseElement.cs
- SymLanguageVendor.cs
- ColumnReorderedEventArgs.cs
- WinOEToolBoxItem.cs
- View.cs
- MatrixValueSerializer.cs
- MultiTrigger.cs
- QilVisitor.cs
- WebBrowserPermission.cs
- FilterableAttribute.cs
- EncoderParameters.cs
- SafeFileMappingHandle.cs
- ServiceHost.cs
- MobileSysDescriptionAttribute.cs
- RoutedEventArgs.cs
- MultipartIdentifier.cs
- ObsoleteAttribute.cs
- SubtreeProcessor.cs
- SystemException.cs
- EventListenerClientSide.cs
- SamlSecurityToken.cs
- FixedTextContainer.cs
- CompositeFontFamily.cs
- IisTraceWebEventProvider.cs
- DataTableClearEvent.cs
- RawTextInputReport.cs
- StaticExtension.cs
- MetadataUtil.cs
- QueryResponse.cs
- Selection.cs
- HwndSourceParameters.cs
- FilterElement.cs
- Thread.cs
- UIServiceHelper.cs
- RequestQueue.cs
- DataGridViewCheckBoxCell.cs
- LocatorBase.cs
- HtmlInputPassword.cs
- FloaterBaseParagraph.cs
- UnionCqlBlock.cs
- PropertyCollection.cs
- ArgIterator.cs
- RegexBoyerMoore.cs
- DynamicDocumentPaginator.cs
- FormsIdentity.cs
- XmlCompatibilityReader.cs
- ToolStripSeparatorRenderEventArgs.cs
- UpdateCompiler.cs
- ToolStripComboBox.cs
- FixedFlowMap.cs
- GroupBox.cs
- DefaultTraceListener.cs
- HMACSHA1.cs
- ChannelManager.cs
- LineBreakRecord.cs
- NotifyIcon.cs
- OledbConnectionStringbuilder.cs
- Stackframe.cs
- X509Certificate2Collection.cs
- NonBatchDirectoryCompiler.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- SqlBuilder.cs
- PageCodeDomTreeGenerator.cs
- MimeXmlReflector.cs