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
- ShutDownListener.cs
- TreeBuilderXamlTranslator.cs
- TextServicesPropertyRanges.cs
- CatalogPartCollection.cs
- GeneralTransform3D.cs
- ProjectedWrapper.cs
- Brush.cs
- DataControlExtensions.cs
- ObsoleteAttribute.cs
- XPathItem.cs
- OracleCommandBuilder.cs
- XLinq.cs
- VirtualPath.cs
- EntityContainerAssociationSetEnd.cs
- followingsibling.cs
- CorrelationHandle.cs
- NumberAction.cs
- DictationGrammar.cs
- ByteAnimationUsingKeyFrames.cs
- ListViewInsertEventArgs.cs
- TransformerInfoCollection.cs
- Rect3DConverter.cs
- XXXOnTypeBuilderInstantiation.cs
- TraceInternal.cs
- HostingEnvironmentSection.cs
- XmlSignificantWhitespace.cs
- PropertyPushdownHelper.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MediaElement.cs
- DataListItemEventArgs.cs
- ContextMenu.cs
- DataGridViewCellLinkedList.cs
- Walker.cs
- ConfigErrorGlyph.cs
- MouseEvent.cs
- StateChangeEvent.cs
- XmlDigitalSignatureProcessor.cs
- XmlSchema.cs
- SessionSwitchEventArgs.cs
- TextPattern.cs
- ToolBarDesigner.cs
- TypeConverterMarkupExtension.cs
- Win32Exception.cs
- ProcessManager.cs
- XmlWrappingReader.cs
- NoneExcludedImageIndexConverter.cs
- DecoderFallback.cs
- MailMessageEventArgs.cs
- KeyToListMap.cs
- DataBoundLiteralControl.cs
- NewItemsContextMenuStrip.cs
- RequestBringIntoViewEventArgs.cs
- BitmapEffectInput.cs
- ModelVisual3D.cs
- OleStrCAMarshaler.cs
- WebCategoryAttribute.cs
- DebuggerAttributes.cs
- QueryOutputWriter.cs
- QilStrConcat.cs
- Base64Encoding.cs
- WrappedReader.cs
- ServiceControllerDesigner.cs
- thaishape.cs
- SocketElement.cs
- ChannelTracker.cs
- SessionIDManager.cs
- InputLanguageSource.cs
- SmtpCommands.cs
- complextypematerializer.cs
- DefaultPrintController.cs
- RequiredAttributeAttribute.cs
- TextBlockAutomationPeer.cs
- ListView.cs
- DBSqlParserColumn.cs
- ExtensionDataReader.cs
- SystemIPGlobalProperties.cs
- TaskForm.cs
- MarshalDirectiveException.cs
- __Filters.cs
- SqlResolver.cs
- HtmlInputImage.cs
- Config.cs
- ReferenceCountedObject.cs
- SafeSecurityHelper.cs
- IItemContainerGenerator.cs
- InfoCardArgumentException.cs
- validation.cs
- ResourceSet.cs
- CodeDirectiveCollection.cs
- infer.cs
- BlurBitmapEffect.cs
- XmlConverter.cs
- RadioButton.cs
- FontFamily.cs
- TreeNodeCollection.cs
- WebControlParameterProxy.cs
- WebBrowserHelper.cs
- GridViewUpdateEventArgs.cs
- SqlAggregateChecker.cs
- FillErrorEventArgs.cs