Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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
- CompilerTypeWithParams.cs
- MailBnfHelper.cs
- ZoneLinkButton.cs
- GeneralTransform3DTo2DTo3D.cs
- OrderedEnumerableRowCollection.cs
- ReachSerializationUtils.cs
- InkCanvasSelectionAdorner.cs
- input.cs
- ArcSegment.cs
- SerializeAbsoluteContext.cs
- SetterBase.cs
- MemberPath.cs
- COM2PropertyDescriptor.cs
- EdmItemError.cs
- Oid.cs
- VoiceSynthesis.cs
- OpenTypeLayoutCache.cs
- XmlSchemaType.cs
- WmpBitmapDecoder.cs
- XmlDataLoader.cs
- FileDialogCustomPlaces.cs
- GeneralTransform3DCollection.cs
- DataPagerCommandEventArgs.cs
- Dictionary.cs
- SelectionEditor.cs
- SimpleApplicationHost.cs
- TagNameToTypeMapper.cs
- OdbcConnectionString.cs
- HttpApplicationStateBase.cs
- DataProtection.cs
- ProtocolInformationWriter.cs
- SizeAnimationClockResource.cs
- UpdateCommandGenerator.cs
- XmlMemberMapping.cs
- MultiBindingExpression.cs
- _BufferOffsetSize.cs
- SmiConnection.cs
- TextUtf8RawTextWriter.cs
- EntityModelBuildProvider.cs
- FunctionDefinition.cs
- GridLengthConverter.cs
- CopyOnWriteList.cs
- WebPartZoneBase.cs
- ReadOnlyDataSource.cs
- StateMachineWorkflow.cs
- CompilationSection.cs
- WarningException.cs
- DbModificationClause.cs
- DataObjectAttribute.cs
- EntitySqlQueryBuilder.cs
- EntityDataSourceSelectedEventArgs.cs
- SinglePageViewer.cs
- AttachedPropertyBrowsableAttribute.cs
- XmlReflectionImporter.cs
- HttpCacheParams.cs
- ResourceWriter.cs
- WindowsTokenRoleProvider.cs
- LinkGrep.cs
- BinHexDecoder.cs
- XmlSchemaComplexType.cs
- ReturnType.cs
- InternalDispatchObject.cs
- FormatConvertedBitmap.cs
- XmlWriterDelegator.cs
- DataControlField.cs
- OdbcUtils.cs
- Method.cs
- GradientBrush.cs
- QilInvokeEarlyBound.cs
- lengthconverter.cs
- DataObjectPastingEventArgs.cs
- WebPartCatalogCloseVerb.cs
- EventTrigger.cs
- InputReferenceExpression.cs
- propertyentry.cs
- grammarelement.cs
- DocumentXPathNavigator.cs
- CodeSubDirectory.cs
- DBDataPermissionAttribute.cs
- BulletChrome.cs
- RegexFCD.cs
- HtmlFormParameterReader.cs
- SegmentTree.cs
- ResourcesBuildProvider.cs
- _NegoStream.cs
- ListBoxAutomationPeer.cs
- AndCondition.cs
- SecUtil.cs
- DataGridCommandEventArgs.cs
- GeneralTransform2DTo3DTo2D.cs
- ReferencedAssembly.cs
- MobileFormsAuthentication.cs
- BasicCellRelation.cs
- ConnectionStringSettings.cs
- ThrowHelper.cs
- SerializationTrace.cs
- PostBackTrigger.cs
- SafeLocalMemHandle.cs
- SqlCharStream.cs
- KeyToListMap.cs