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
- metadatamappinghashervisitor.hashsourcebuilder.cs
- PageFunction.cs
- DataBoundControl.cs
- WindowsGraphics.cs
- DocumentPage.cs
- WpfKnownMember.cs
- securitycriticaldataformultiplegetandset.cs
- InkCanvasFeedbackAdorner.cs
- SystemDropShadowChrome.cs
- SecurityElement.cs
- ConfigurationProperty.cs
- WorkflowMarkupSerializationProvider.cs
- EditorBrowsableAttribute.cs
- ChtmlTextBoxAdapter.cs
- PrintDialog.cs
- StreamingContext.cs
- ContentElementAutomationPeer.cs
- ObjectStateFormatter.cs
- UpdateProgress.cs
- ScrollChangedEventArgs.cs
- AuthorizationRule.cs
- StoreItemCollection.cs
- CommentEmitter.cs
- SharedPersonalizationStateInfo.cs
- TracedNativeMethods.cs
- StylusPointPropertyInfoDefaults.cs
- PageAsyncTask.cs
- SqlDeflator.cs
- WebPartConnectionsConnectVerb.cs
- OpacityConverter.cs
- ParamArrayAttribute.cs
- FormViewUpdatedEventArgs.cs
- FixedSOMTableRow.cs
- RecognizerInfo.cs
- NullableDoubleMinMaxAggregationOperator.cs
- CellParagraph.cs
- SqlExpressionNullability.cs
- CallSite.cs
- DispatcherObject.cs
- StrokeNodeOperations2.cs
- Avt.cs
- NonBatchDirectoryCompiler.cs
- OverlappedContext.cs
- AudioFileOut.cs
- TextMessageEncodingBindingElement.cs
- TreeNodeStyle.cs
- HtmlTableCell.cs
- CodeDomSerializer.cs
- Regex.cs
- HtmlTextArea.cs
- MeasureItemEvent.cs
- ImageAttributes.cs
- GridProviderWrapper.cs
- ListSortDescriptionCollection.cs
- ControlCachePolicy.cs
- MD5.cs
- WindowsAltTab.cs
- GifBitmapEncoder.cs
- CfgSemanticTag.cs
- HashCodeCombiner.cs
- DataContractJsonSerializer.cs
- ProxyWebPart.cs
- Stylesheet.cs
- OleDbDataReader.cs
- BehaviorEditorPart.cs
- ToolStripSplitButton.cs
- SamlAction.cs
- ProvideValueServiceProvider.cs
- MessagePropertyAttribute.cs
- DeleteMemberBinder.cs
- ActivitySurrogateSelector.cs
- PagedDataSource.cs
- PagerSettings.cs
- XmlSerializer.cs
- sqlinternaltransaction.cs
- OdbcParameter.cs
- PropertyMapper.cs
- CopyOfAction.cs
- LinqDataSourceStatusEventArgs.cs
- ReadOnlyDataSourceView.cs
- URLMembershipCondition.cs
- DeferrableContent.cs
- FrameworkElementFactoryMarkupObject.cs
- ListSortDescriptionCollection.cs
- StrongNameKeyPair.cs
- RootBrowserWindowProxy.cs
- TextTreeRootNode.cs
- SerializationBinder.cs
- ObfuscateAssemblyAttribute.cs
- DBNull.cs
- CodeDOMUtility.cs
- xml.cs
- ListViewTableRow.cs
- GeometryModel3D.cs
- MailBnfHelper.cs
- XmlSchemaAll.cs
- ToolStripContentPanel.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ZipIOExtraField.cs
- KeyValueConfigurationCollection.cs