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
- XmlWrappingWriter.cs
- MissingFieldException.cs
- SizeAnimationUsingKeyFrames.cs
- XmlWriter.cs
- VirtualDirectoryMappingCollection.cs
- ReadOnlyPropertyMetadata.cs
- ThreadStartException.cs
- StrongNamePublicKeyBlob.cs
- WCFServiceClientProxyGenerator.cs
- LinkArea.cs
- ParsedRoute.cs
- DragStartedEventArgs.cs
- WebBrowserNavigatedEventHandler.cs
- VisualBrush.cs
- AVElementHelper.cs
- AssemblyCache.cs
- HandledEventArgs.cs
- ExpressionStringBuilder.cs
- PagePropertiesChangingEventArgs.cs
- CallInfo.cs
- WindowsStreamSecurityBindingElement.cs
- StdRegProviderWrapper.cs
- WebConfigurationHostFileChange.cs
- SizeFConverter.cs
- AssociationSetMetadata.cs
- TextClipboardData.cs
- KeyEvent.cs
- SuppressMergeCheckAttribute.cs
- RecognizerBase.cs
- DrawingDrawingContext.cs
- AudioFormatConverter.cs
- __Error.cs
- WindowsEditBoxRange.cs
- StringAnimationUsingKeyFrames.cs
- LineUtil.cs
- XmlDataDocument.cs
- EventLogRecord.cs
- InlineUIContainer.cs
- PrintEvent.cs
- MemoryMappedViewStream.cs
- ComponentCollection.cs
- DocumentSchemaValidator.cs
- Transactions.cs
- SHA1Managed.cs
- RestHandler.cs
- DataGridToolTip.cs
- FastEncoder.cs
- CellRelation.cs
- PageSetupDialog.cs
- Rotation3DKeyFrameCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- _ConnectionGroup.cs
- AspNetHostingPermission.cs
- DataMemberFieldEditor.cs
- TransformValueSerializer.cs
- NamespaceEmitter.cs
- Clause.cs
- dbenumerator.cs
- PreProcessor.cs
- TargetConverter.cs
- SourceItem.cs
- TableRowCollection.cs
- ControlBuilder.cs
- LowerCaseStringConverter.cs
- ContractCodeDomInfo.cs
- Light.cs
- Vector.cs
- CheckBox.cs
- CodeSnippetStatement.cs
- StylusTip.cs
- KeyedHashAlgorithm.cs
- MessageProtectionOrder.cs
- TrackBarRenderer.cs
- IApplicationTrustManager.cs
- SoapSchemaImporter.cs
- DefaultAuthorizationContext.cs
- SQLDecimalStorage.cs
- ProcessManager.cs
- MetadataArtifactLoaderCompositeResource.cs
- EntitySetBaseCollection.cs
- StrongName.cs
- CodeGroup.cs
- OledbConnectionStringbuilder.cs
- SessionStateSection.cs
- WebServiceParameterData.cs
- CfgParser.cs
- DrawingContextWalker.cs
- DataMemberConverter.cs
- WebPartTransformer.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- IntegrationExceptionEventArgs.cs
- DataGridViewTextBoxColumn.cs
- DataListItem.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataIdProcessor.cs
- SecurityState.cs
- TimerEventSubscription.cs
- LateBoundChannelParameterCollection.cs
- TagElement.cs
- CacheOutputQuery.cs