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
- _SSPIWrapper.cs
- EndEvent.cs
- ApplicationInterop.cs
- DataGrid.cs
- SplitterPanel.cs
- ValidatingReaderNodeData.cs
- PersistenceTypeAttribute.cs
- HandleExceptionArgs.cs
- OwnerDrawPropertyBag.cs
- HyperLinkDesigner.cs
- SelectorAutomationPeer.cs
- SecurityRuntime.cs
- DbProviderManifest.cs
- ToggleProviderWrapper.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- LinqDataSourceView.cs
- ImageUrlEditor.cs
- Empty.cs
- _TLSstream.cs
- EntityReference.cs
- PackWebRequest.cs
- DataGridViewSelectedCellCollection.cs
- _AutoWebProxyScriptWrapper.cs
- HttpModuleCollection.cs
- DbParameterCollectionHelper.cs
- ComponentEvent.cs
- SmtpFailedRecipientsException.cs
- PresentationSource.cs
- UntypedNullExpression.cs
- HMACSHA512.cs
- DataGrid.cs
- BinaryMethodMessage.cs
- XmlToDatasetMap.cs
- XmlSerializationReader.cs
- MSG.cs
- CancellationHandlerDesigner.cs
- UserUseLicenseDictionaryLoader.cs
- PropertyCollection.cs
- SrgsRuleRef.cs
- Task.cs
- FlowDocumentView.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- GeometryConverter.cs
- SqlConnection.cs
- Trace.cs
- InternalSafeNativeMethods.cs
- AssociationTypeEmitter.cs
- InternalCache.cs
- PerformanceCounterPermissionEntry.cs
- WebPartVerbCollection.cs
- CTreeGenerator.cs
- PointValueSerializer.cs
- ScriptReferenceEventArgs.cs
- BamlRecords.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- EmbeddedMailObject.cs
- AvTraceDetails.cs
- SafeFileMappingHandle.cs
- WebContext.cs
- XPathArrayIterator.cs
- Panel.cs
- DefinitionBase.cs
- ChannelPool.cs
- FontUnit.cs
- SectionXmlInfo.cs
- NativeMethods.cs
- EntityDataSourceStatementEditor.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- VarInfo.cs
- BitmapEffect.cs
- TabPanel.cs
- OutputCacheProfile.cs
- ToolStripLabel.cs
- ByteAnimationUsingKeyFrames.cs
- TreeNodeSelectionProcessor.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- CrossSiteScriptingValidation.cs
- FrameAutomationPeer.cs
- Grant.cs
- ProcessProtocolHandler.cs
- SemaphoreFullException.cs
- SqlProfileProvider.cs
- XmlDocumentSerializer.cs
- PropertyDescriptorComparer.cs
- HitTestParameters3D.cs
- DeferrableContentConverter.cs
- ExpressionBuilder.cs
- SqlVisitor.cs
- TraceFilter.cs
- Cursors.cs
- DesignTimeVisibleAttribute.cs
- ThreadInterruptedException.cs
- ExtensionDataReader.cs
- ConfigWriter.cs
- DbMetaDataColumnNames.cs
- SqlWriter.cs
- ToolBarButtonClickEvent.cs
- PropertyKey.cs
- JumpItem.cs
- DataControlImageButton.cs