Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Compilation.cs
- LayoutEngine.cs
- ClientApiGenerator.cs
- RightsManagementEncryptionTransform.cs
- EventDriven.cs
- DrawTreeNodeEventArgs.cs
- StoryFragments.cs
- SiteMapDataSourceDesigner.cs
- SystemUdpStatistics.cs
- TemplateBamlTreeBuilder.cs
- AssemblyBuilderData.cs
- SplineQuaternionKeyFrame.cs
- SocketElement.cs
- TreeNodeEventArgs.cs
- DefaultShape.cs
- TextPattern.cs
- TextPointer.cs
- TimeZone.cs
- WinFormsUtils.cs
- VariableAction.cs
- MessageHeader.cs
- Message.cs
- IdentityVerifier.cs
- PageRanges.cs
- SchemaElementLookUpTable.cs
- MD5.cs
- BrushMappingModeValidation.cs
- DllNotFoundException.cs
- FileNotFoundException.cs
- OverflowException.cs
- DataViewManager.cs
- GenericEnumerator.cs
- XmlAggregates.cs
- ClientRuntimeConfig.cs
- BindingExpressionBase.cs
- PersistencePipeline.cs
- DataGridColumnCollection.cs
- TableLayoutPanelCodeDomSerializer.cs
- TextAnchor.cs
- XmlSchemaException.cs
- ToolZone.cs
- ObjectManager.cs
- EntitySetDataBindingList.cs
- AutoScrollExpandMessageFilter.cs
- JsonSerializer.cs
- WasEndpointConfigContainer.cs
- SessionViewState.cs
- EditorPartChrome.cs
- URLMembershipCondition.cs
- DictionaryBase.cs
- UIPermission.cs
- SetState.cs
- SurrogateDataContract.cs
- Pen.cs
- SamlAuthenticationClaimResource.cs
- KernelTypeValidation.cs
- ObjectStorage.cs
- BufferedReceiveElement.cs
- DataGridCellClipboardEventArgs.cs
- VideoDrawing.cs
- TypeDescriptionProvider.cs
- IgnorePropertiesAttribute.cs
- StatusBar.cs
- TransactionContext.cs
- WebPartVerbCollection.cs
- hwndwrapper.cs
- Region.cs
- DataServiceException.cs
- Exceptions.cs
- DrawItemEvent.cs
- NoResizeHandleGlyph.cs
- TypedElement.cs
- OleDbRowUpdatedEvent.cs
- DataGridCommandEventArgs.cs
- PointLight.cs
- DataGridItemCollection.cs
- IconBitmapDecoder.cs
- XsdValidatingReader.cs
- SurrogateEncoder.cs
- RemotingConfiguration.cs
- DelegatingTypeDescriptionProvider.cs
- TextEditorDragDrop.cs
- SkewTransform.cs
- DataGridViewBindingCompleteEventArgs.cs
- FullTrustAssembly.cs
- XmlSchemaGroupRef.cs
- TypedTableBaseExtensions.cs
- SqlEnums.cs
- TitleStyle.cs
- ObjectStateManagerMetadata.cs
- WebBaseEventKeyComparer.cs
- RoleService.cs
- DelegateTypeInfo.cs
- PlatformCulture.cs
- AdapterUtil.cs
- BufferModesCollection.cs
- Opcode.cs
- UIElement.cs
- ActivityScheduledQuery.cs
- DataGridViewBindingCompleteEventArgs.cs