Code:
/ 4.0 / 4.0 / 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. 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
- TextTreeUndoUnit.cs
- FrugalList.cs
- ObfuscateAssemblyAttribute.cs
- WindowsRichEdit.cs
- BitmapCodecInfoInternal.cs
- SamlAttributeStatement.cs
- SqlUtil.cs
- TextSegment.cs
- EntryIndex.cs
- XmlNamedNodeMap.cs
- WinFormsComponentEditor.cs
- UnaryNode.cs
- sqlmetadatafactory.cs
- DeflateStream.cs
- DataServiceQueryException.cs
- ContextBase.cs
- XmlNodeList.cs
- UserControlAutomationPeer.cs
- RegexGroupCollection.cs
- XmlObjectSerializer.cs
- TextEditorContextMenu.cs
- ContentWrapperAttribute.cs
- PkcsMisc.cs
- OleDbConnectionInternal.cs
- OleDbSchemaGuid.cs
- PersonalizationEntry.cs
- _AutoWebProxyScriptEngine.cs
- DataKeyCollection.cs
- ToolbarAUtomationPeer.cs
- ToolStripRenderer.cs
- DataGrid.cs
- XmlSchemas.cs
- Completion.cs
- ObsoleteAttribute.cs
- RefreshPropertiesAttribute.cs
- AttachmentCollection.cs
- RunWorkerCompletedEventArgs.cs
- CodeIterationStatement.cs
- BamlLocalizableResourceKey.cs
- Journaling.cs
- AdjustableArrowCap.cs
- CmsUtils.cs
- InstanceHandleReference.cs
- ToolStripDropTargetManager.cs
- SecurityUtils.cs
- EdmConstants.cs
- ElementHost.cs
- DataGridCommandEventArgs.cs
- WebControlsSection.cs
- Vertex.cs
- RootBrowserWindowAutomationPeer.cs
- GeneralTransform3D.cs
- _ScatterGatherBuffers.cs
- EmptyControlCollection.cs
- Frame.cs
- CollectionType.cs
- HtmlElementErrorEventArgs.cs
- DependencyObjectType.cs
- ToolStripContainer.cs
- LayoutTableCell.cs
- UIntPtr.cs
- _ListenerRequestStream.cs
- ObjectRef.cs
- SecurityHeaderElementInferenceEngine.cs
- ErrorRuntimeConfig.cs
- UpdatePanel.cs
- WorkflowMarkupElementEventArgs.cs
- SynchronousReceiveElement.cs
- StorageEndPropertyMapping.cs
- RtType.cs
- MarshalByValueComponent.cs
- BlurEffect.cs
- Cursor.cs
- CodeCatchClauseCollection.cs
- Certificate.cs
- Models.cs
- CheckBoxRenderer.cs
- QueryTask.cs
- GACIdentityPermission.cs
- MatrixUtil.cs
- WeakEventTable.cs
- GridEntryCollection.cs
- MruCache.cs
- PenCursorManager.cs
- ProfileService.cs
- FileLoadException.cs
- SqlRetyper.cs
- SqlDataSourceRefreshSchemaForm.cs
- AnimationTimeline.cs
- IODescriptionAttribute.cs
- RenderingEventArgs.cs
- ProfileBuildProvider.cs
- StructuralObject.cs
- RtfToken.cs
- SystemIPAddressInformation.cs
- TemplateBindingExpression.cs
- LayoutEditorPart.cs
- FixedFindEngine.cs
- HtmlImage.cs
- Events.cs