Code:
/ FX-1434 / FX-1434 / 1.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
- ServiceBuildProvider.cs
- XamlContextStack.cs
- XPathNodeList.cs
- DataControlButton.cs
- QuadraticBezierSegment.cs
- DashStyle.cs
- TabletCollection.cs
- AesManaged.cs
- TraceData.cs
- XsdDataContractImporter.cs
- DataColumnChangeEvent.cs
- PermissionSetEnumerator.cs
- InternalDispatchObject.cs
- ProfileModule.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Effect.cs
- QilName.cs
- dbenumerator.cs
- FrameworkElementFactoryMarkupObject.cs
- QuadraticBezierSegment.cs
- SiteIdentityPermission.cs
- ConsumerConnectionPointCollection.cs
- UserInitiatedNavigationPermission.cs
- WebPartDeleteVerb.cs
- Bitmap.cs
- Brushes.cs
- MetaType.cs
- ExpandCollapsePattern.cs
- VirtualDirectoryMappingCollection.cs
- FaultFormatter.cs
- MessageFilterException.cs
- MenuCommandService.cs
- HighlightOverlayGlyph.cs
- Cloud.cs
- PrinterSettings.cs
- WebPartAuthorizationEventArgs.cs
- GifBitmapEncoder.cs
- TreePrinter.cs
- SqlInternalConnectionSmi.cs
- SingleTagSectionHandler.cs
- Attributes.cs
- SafeArrayTypeMismatchException.cs
- StyleTypedPropertyAttribute.cs
- ConnectionDemuxer.cs
- CacheRequest.cs
- BrowserTree.cs
- BaseComponentEditor.cs
- TransactionException.cs
- ImplicitInputBrush.cs
- XPathNode.cs
- HostingEnvironment.cs
- DataBindingExpressionBuilder.cs
- SiteMapNode.cs
- FolderBrowserDialog.cs
- WebPartDescriptionCollection.cs
- DeviceContexts.cs
- TaskHelper.cs
- DirectoryInfo.cs
- SystemColorTracker.cs
- CompilerHelpers.cs
- CodeDirectionExpression.cs
- AnnotationAdorner.cs
- CodeTypeDeclarationCollection.cs
- ObservableCollection.cs
- X509ScopedServiceCertificateElement.cs
- RichTextBoxAutomationPeer.cs
- WorkflowNamespace.cs
- MessageSecurityProtocolFactory.cs
- MemoryRecordBuffer.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- GenericAuthenticationEventArgs.cs
- IDQuery.cs
- regiisutil.cs
- MDIClient.cs
- TypedElement.cs
- TraceFilter.cs
- TabControlCancelEvent.cs
- PointAnimation.cs
- MiniModule.cs
- ProfileInfo.cs
- SafeMILHandle.cs
- EntityDataSourceChangingEventArgs.cs
- CodeObject.cs
- SolidBrush.cs
- MoveSizeWinEventHandler.cs
- ByteStreamMessageUtility.cs
- ToolStripDropDownItemDesigner.cs
- RepeatEnumerable.cs
- AtlasWeb.Designer.cs
- RuleSettingsCollection.cs
- safex509handles.cs
- ConfigXmlSignificantWhitespace.cs
- Panel.cs
- NameTable.cs
- SingleAnimation.cs
- MimeWriter.cs
- SchemaAttDef.cs
- Soap.cs
- HtmlInputText.cs
- ResumeStoryboard.cs