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
- ViewPort3D.cs
- NodeLabelEditEvent.cs
- Stroke.cs
- PerfService.cs
- FileUtil.cs
- ConfigurationElement.cs
- AsymmetricCryptoHandle.cs
- DoubleCollectionConverter.cs
- XMLDiffLoader.cs
- DSASignatureFormatter.cs
- EncoderNLS.cs
- ProfileBuildProvider.cs
- ConfigViewGenerator.cs
- DiscriminatorMap.cs
- TreeNodeStyle.cs
- SystemIPGlobalStatistics.cs
- FlowSwitch.cs
- XmlBinaryReader.cs
- BooleanAnimationBase.cs
- PixelFormat.cs
- CharEntityEncoderFallback.cs
- ForeignConstraint.cs
- Point.cs
- SevenBitStream.cs
- TdsRecordBufferSetter.cs
- ColumnBinding.cs
- PassportIdentity.cs
- SingleTagSectionHandler.cs
- ModuleBuilder.cs
- serverconfig.cs
- TextDecorationLocationValidation.cs
- DataContractSerializer.cs
- BrowserInteropHelper.cs
- GridViewRowPresenterBase.cs
- XmlSchemaAnyAttribute.cs
- TemplateBindingExtensionConverter.cs
- ConfigXmlSignificantWhitespace.cs
- AsymmetricSignatureFormatter.cs
- HwndSource.cs
- GeometryConverter.cs
- X509ServiceCertificateAuthenticationElement.cs
- RequestCachingSection.cs
- OperatorExpressions.cs
- BlockCollection.cs
- FeatureSupport.cs
- ShapingWorkspace.cs
- PeerNameRecordCollection.cs
- TextLineResult.cs
- CachedTypeface.cs
- _LocalDataStore.cs
- X509Utils.cs
- UserControlBuildProvider.cs
- ListControl.cs
- ImplicitInputBrush.cs
- ImpersonationContext.cs
- ContainerParaClient.cs
- ArglessEventHandlerProxy.cs
- CodeGeneratorAttribute.cs
- DataGridViewTextBoxCell.cs
- PrintDialogException.cs
- EmptyElement.cs
- DefaultPropertyAttribute.cs
- WindowsGraphicsWrapper.cs
- ClientCultureInfo.cs
- PointF.cs
- DataMisalignedException.cs
- LinkConverter.cs
- SqlStatistics.cs
- CalendarDay.cs
- SqlCharStream.cs
- SqlClientPermission.cs
- SqlMethodCallConverter.cs
- IntegerValidatorAttribute.cs
- XhtmlConformanceSection.cs
- TableSectionStyle.cs
- ExceptQueryOperator.cs
- InfoCardKeyedHashAlgorithm.cs
- Internal.cs
- HTMLTagNameToTypeMapper.cs
- DockAndAnchorLayout.cs
- WebPartChrome.cs
- PaperSize.cs
- FirstQueryOperator.cs
- Effect.cs
- GlyphElement.cs
- SeparatorAutomationPeer.cs
- TypeToStringValueConverter.cs
- PropertyChangedEventArgs.cs
- UnsafeNetInfoNativeMethods.cs
- ComponentDispatcherThread.cs
- Fx.cs
- Int32Collection.cs
- DatagridviewDisplayedBandsData.cs
- DataRowExtensions.cs
- ModulesEntry.cs
- HttpModulesSection.cs
- MimeFormImporter.cs
- GrammarBuilder.cs
- Variant.cs
- InlineCollection.cs