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
- TextTreePropertyUndoUnit.cs
- MimeXmlReflector.cs
- NullableIntAverageAggregationOperator.cs
- RoutedEventConverter.cs
- Unit.cs
- PackageRelationship.cs
- AddressHeader.cs
- UMPAttributes.cs
- DataControlImageButton.cs
- PenContexts.cs
- OneToOneMappingSerializer.cs
- WsdlHelpGeneratorElement.cs
- TextEditorContextMenu.cs
- ExtensionFile.cs
- httpserverutility.cs
- DataGridRowHeaderAutomationPeer.cs
- SqlProvider.cs
- TextElement.cs
- OpacityConverter.cs
- JapaneseLunisolarCalendar.cs
- TextSegment.cs
- ItemList.cs
- NodeInfo.cs
- selecteditemcollection.cs
- WebPartCancelEventArgs.cs
- PageStatePersister.cs
- StaticExtensionConverter.cs
- ProjectionCamera.cs
- EntityEntry.cs
- WizardForm.cs
- AnnotationComponentChooser.cs
- CachedFontFamily.cs
- IndexedGlyphRun.cs
- AggregateNode.cs
- ToolboxComponentsCreatedEventArgs.cs
- PrefixQName.cs
- OperatingSystem.cs
- RubberbandSelector.cs
- DictionaryMarkupSerializer.cs
- AstNode.cs
- PagedDataSource.cs
- RotateTransform3D.cs
- BaseCodeDomTreeGenerator.cs
- WebPartMovingEventArgs.cs
- ClientUrlResolverWrapper.cs
- TraceUtils.cs
- EncryptedXml.cs
- HandlerBase.cs
- IsolatedStorageException.cs
- ButtonBaseAdapter.cs
- storagemappingitemcollection.viewdictionary.cs
- ListViewUpdateEventArgs.cs
- FtpWebResponse.cs
- Assembly.cs
- HtmlTitle.cs
- BaseValidator.cs
- SqlDataSourceView.cs
- OuterGlowBitmapEffect.cs
- GestureRecognizer.cs
- IdentityModelStringsVersion1.cs
- GrabHandleGlyph.cs
- QuaternionAnimation.cs
- BuildProvider.cs
- PreservationFileWriter.cs
- StringHandle.cs
- StoragePropertyMapping.cs
- TypeSystem.cs
- UInt32Storage.cs
- SafeViewOfFileHandle.cs
- CorruptStoreException.cs
- ArglessEventHandlerProxy.cs
- AlphabeticalEnumConverter.cs
- XmlSiteMapProvider.cs
- InitializerFacet.cs
- SingleKeyFrameCollection.cs
- ProgressBar.cs
- ActivityDesignerAccessibleObject.cs
- PopOutPanel.cs
- QuaternionKeyFrameCollection.cs
- OleDbConnection.cs
- CorrelationResolver.cs
- ExtensionWindowHeader.cs
- safex509handles.cs
- ToolStripItemTextRenderEventArgs.cs
- ObjectHandle.cs
- ReadOnlyNameValueCollection.cs
- BitmapCache.cs
- EventEntry.cs
- TextFormatter.cs
- ViewGenResults.cs
- EventHandlerList.cs
- QueryOutputWriter.cs
- ScrollItemProviderWrapper.cs
- ISAPIRuntime.cs
- ObjectSerializerFactory.cs
- RangeValuePattern.cs
- TextTreeInsertElementUndoUnit.cs
- BinarySerializer.cs
- DbSourceParameterCollection.cs
- Iis7Helper.cs