Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / NetworkInterface.cs / 1305376 / 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); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextRenderer.cs
- LocalizationParserHooks.cs
- DataTablePropertyDescriptor.cs
- BeginEvent.cs
- StrongNamePublicKeyBlob.cs
- IOThreadTimer.cs
- HelpFileFileNameEditor.cs
- WebBrowser.cs
- RegexGroupCollection.cs
- SystemColorTracker.cs
- HuffmanTree.cs
- FlowPosition.cs
- HttpClientCertificate.cs
- PropagatorResult.cs
- XmlSecureResolver.cs
- ContentType.cs
- TextTreeInsertUndoUnit.cs
- Misc.cs
- DNS.cs
- ObjectParameterCollection.cs
- DefaultBinder.cs
- EventData.cs
- ConnectionProviderAttribute.cs
- DataControlFieldCell.cs
- DynamicValidatorEventArgs.cs
- ToolStripItem.cs
- DataBindingsDialog.cs
- TimelineGroup.cs
- SvcFileManager.cs
- Resources.Designer.cs
- UnsafeNativeMethodsPenimc.cs
- TriggerActionCollection.cs
- BitmapCache.cs
- XamlSerializerUtil.cs
- XmlStringTable.cs
- TextEmbeddedObject.cs
- ButtonBase.cs
- DiagnosticStrings.cs
- CombinedGeometry.cs
- DiscoveryClientProtocol.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SubordinateTransaction.cs
- ConfigsHelper.cs
- SingleStorage.cs
- ControlBuilderAttribute.cs
- TypeInfo.cs
- WriteableOnDemandPackagePart.cs
- SEHException.cs
- DbDeleteCommandTree.cs
- ReadOnlyDictionary.cs
- SslStream.cs
- PreProcessInputEventArgs.cs
- UIElementIsland.cs
- LowerCaseStringConverter.cs
- EncodingNLS.cs
- EncryptRequest.cs
- LongTypeConverter.cs
- ControlDesigner.cs
- ScalarType.cs
- PriorityQueue.cs
- CommandSet.cs
- MetaModel.cs
- ExtensionFile.cs
- MonthCalendar.cs
- ComponentEditorForm.cs
- CompileXomlTask.cs
- PermissionListSet.cs
- ConnectionStringSettingsCollection.cs
- SpeechEvent.cs
- PrintingPermission.cs
- DependencyObject.cs
- RouteParser.cs
- AsyncStreamReader.cs
- DataGridViewLayoutData.cs
- XmlSchemaImport.cs
- CellPartitioner.cs
- ChangeInterceptorAttribute.cs
- XmlDataSourceDesigner.cs
- X509CertificateStore.cs
- Recipient.cs
- SqlVersion.cs
- ObjectDisposedException.cs
- EdmProviderManifest.cs
- EncoderExceptionFallback.cs
- ParallelTimeline.cs
- SqlWebEventProvider.cs
- Logging.cs
- CompositeTypefaceMetrics.cs
- XmlAttributeCollection.cs
- Funcletizer.cs
- WsdlImporter.cs
- OdbcException.cs
- FactoryRecord.cs
- JumpTask.cs
- EntityDataSourceEntitySetNameItem.cs
- SqlTrackingWorkflowInstance.cs
- IteratorFilter.cs
- CallbackHandler.cs
- CompiledXpathExpr.cs
- SafeRegistryHandle.cs