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
- XMLUtil.cs
- CommonRemoteMemoryBlock.cs
- serverconfig.cs
- Msec.cs
- Binding.cs
- XmlWriter.cs
- DashStyle.cs
- HtmlElementEventArgs.cs
- ProfilePropertySettings.cs
- _StreamFramer.cs
- FixedPageProcessor.cs
- RequiredAttributeAttribute.cs
- IdentityManager.cs
- ClientConfigurationHost.cs
- ThreadAttributes.cs
- XmlSerializationReader.cs
- XDeferredAxisSource.cs
- PageThemeBuildProvider.cs
- ContentFilePart.cs
- loginstatus.cs
- FloatSumAggregationOperator.cs
- ExpressionBuilder.cs
- ItemsChangedEventArgs.cs
- MinMaxParagraphWidth.cs
- RangeValueProviderWrapper.cs
- ServiceMetadataExtension.cs
- LeaseManager.cs
- _HelperAsyncResults.cs
- SafeNativeMethods.cs
- DictionaryBase.cs
- ListViewUpdateEventArgs.cs
- MissingManifestResourceException.cs
- CheckBoxDesigner.cs
- NameValuePair.cs
- GridItemPattern.cs
- TextSpanModifier.cs
- SqlParameterCollection.cs
- GlobalizationAssembly.cs
- JsonClassDataContract.cs
- SiteOfOriginPart.cs
- UniqueConstraint.cs
- Version.cs
- Span.cs
- HttpCookie.cs
- ForwardPositionQuery.cs
- ByeOperation11AsyncResult.cs
- StateItem.cs
- Animatable.cs
- InternalSafeNativeMethods.cs
- VerificationException.cs
- OleCmdHelper.cs
- ArrayConverter.cs
- FunctionCommandText.cs
- TextRangeEdit.cs
- X509CertificateRecipientServiceCredential.cs
- CodeMethodMap.cs
- ChangePassword.cs
- XmlQualifiedName.cs
- IncrementalReadDecoders.cs
- ImageConverter.cs
- Model3DGroup.cs
- ObsoleteAttribute.cs
- ReliabilityContractAttribute.cs
- AppDomain.cs
- XNodeSchemaApplier.cs
- PermissionRequestEvidence.cs
- QilUnary.cs
- ElementHostAutomationPeer.cs
- DbQueryCommandTree.cs
- EtwTrackingBehaviorElement.cs
- WindowsListViewGroupSubsetLink.cs
- CipherData.cs
- DataListAutoFormat.cs
- ComPlusThreadInitializer.cs
- ClickablePoint.cs
- Selection.cs
- AppSettingsExpressionBuilder.cs
- XmlElementList.cs
- BroadcastEventHelper.cs
- WindowVisualStateTracker.cs
- WSSecurityJan2004.cs
- ConnectionPoint.cs
- SubMenuStyle.cs
- path.cs
- SslStreamSecurityElement.cs
- UnionExpr.cs
- TreeIterators.cs
- WorkflowMarkupSerializationManager.cs
- ProvideValueServiceProvider.cs
- TextEncodedRawTextWriter.cs
- ElementProxy.cs
- DataGridAddNewRow.cs
- VirtualStackFrame.cs
- StylusPoint.cs
- MessageBox.cs
- FormatSettings.cs
- WmlLiteralTextAdapter.cs
- CreatingCookieEventArgs.cs
- CacheRequest.cs
- CompareValidator.cs