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
- _UncName.cs
- GenericRootAutomationPeer.cs
- ConfigurationPropertyAttribute.cs
- XmlMessageFormatter.cs
- SapiRecognizer.cs
- DateTimeConstantAttribute.cs
- ImportOptions.cs
- ShimAsPublicXamlType.cs
- Screen.cs
- TrackingMemoryStreamFactory.cs
- SqlClientFactory.cs
- WebPartAddingEventArgs.cs
- QueryReaderSettings.cs
- SimpleExpression.cs
- MenuItemStyle.cs
- ContentFilePart.cs
- _DigestClient.cs
- PropertyGrid.cs
- DecimalAnimation.cs
- WsatTransactionInfo.cs
- DataGridViewCellLinkedList.cs
- SecurityPermission.cs
- ConvertersCollection.cs
- CompilerLocalReference.cs
- ParseChildrenAsPropertiesAttribute.cs
- EventTrigger.cs
- TypeSchema.cs
- ColumnWidthChangedEvent.cs
- WorkItem.cs
- XpsPackagingException.cs
- DataGridTable.cs
- TemplateParser.cs
- XslTransform.cs
- HistoryEventArgs.cs
- _OSSOCK.cs
- TextReturnReader.cs
- Dictionary.cs
- WindowsSspiNegotiation.cs
- LogSwitch.cs
- SQLDouble.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- DataContractSerializerMessageContractImporter.cs
- contentDescriptor.cs
- LambdaCompiler.Address.cs
- FieldAccessException.cs
- PageSettings.cs
- EnumerableWrapperWeakToStrong.cs
- IncrementalHitTester.cs
- OrderByQueryOptionExpression.cs
- QilInvoke.cs
- Variant.cs
- Substitution.cs
- Delegate.cs
- RichTextBox.cs
- FixedTextContainer.cs
- FunctionDefinition.cs
- HighlightOverlayGlyph.cs
- Axis.cs
- DataGridViewCellStyleChangedEventArgs.cs
- HealthMonitoringSection.cs
- XmlWriterSettings.cs
- columnmapkeybuilder.cs
- RootCodeDomSerializer.cs
- FormsAuthenticationUserCollection.cs
- TreeNode.cs
- CompoundFileStorageReference.cs
- ScrollEventArgs.cs
- DynamicResourceExtension.cs
- BoundPropertyEntry.cs
- StorageInfo.cs
- Binding.cs
- StringStorage.cs
- Size3D.cs
- SoapInteropTypes.cs
- PostBackOptions.cs
- ResourceType.cs
- DesignTimeParseData.cs
- RijndaelManaged.cs
- ObjectListSelectEventArgs.cs
- TreeViewItem.cs
- IntPtr.cs
- RemotingSurrogateSelector.cs
- Selection.cs
- HistoryEventArgs.cs
- HttpResponseInternalWrapper.cs
- SqlConnectionStringBuilder.cs
- MissingManifestResourceException.cs
- PropertyChangedEventManager.cs
- DbSetClause.cs
- XPathCompiler.cs
- MetadataItem.cs
- AdapterUtil.cs
- MdiWindowListItemConverter.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- NumericUpDownAcceleration.cs
- C14NUtil.cs
- AttributeAction.cs
- XmlAtomicValue.cs
- JsonServiceDocumentSerializer.cs
- OracleException.cs