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
- _SafeNetHandles.cs
- DbConnectionPoolCounters.cs
- XmlAtomicValue.cs
- _IPv6Address.cs
- RegexStringValidator.cs
- Animatable.cs
- FileSystemWatcher.cs
- Rectangle.cs
- ClientConfigPaths.cs
- PartialToken.cs
- IsolatedStorage.cs
- Authorization.cs
- ProcessHostFactoryHelper.cs
- ExecutionEngineException.cs
- AuthenticationConfig.cs
- DataKey.cs
- ComponentEditorForm.cs
- OutputCacheProfileCollection.cs
- PageParser.cs
- Sequence.cs
- PropertyGridDesigner.cs
- SpellerHighlightLayer.cs
- SettingsPropertyNotFoundException.cs
- TraceSwitch.cs
- WhiteSpaceTrimStringConverter.cs
- CodeAssignStatement.cs
- WindowsTitleBar.cs
- KnownColorTable.cs
- Quad.cs
- CompilerTypeWithParams.cs
- TemplateAction.cs
- XmlNodeWriter.cs
- FolderBrowserDialogDesigner.cs
- SafeSystemMetrics.cs
- Matrix3D.cs
- FileUtil.cs
- MethodBuilder.cs
- WebPartVerbsEventArgs.cs
- RowVisual.cs
- CustomCategoryAttribute.cs
- FolderBrowserDialog.cs
- TypeUnloadedException.cs
- DecoderFallbackWithFailureFlag.cs
- HScrollBar.cs
- FixedFlowMap.cs
- DocumentReferenceCollection.cs
- SiteMapNodeCollection.cs
- LOSFormatter.cs
- NameValuePermission.cs
- xdrvalidator.cs
- RoutedEvent.cs
- DescendantQuery.cs
- WindowsListViewGroupHelper.cs
- AppDomain.cs
- FactoryRecord.cs
- DesignBindingEditor.cs
- CommandValueSerializer.cs
- OSFeature.cs
- Win32Interop.cs
- ParagraphVisual.cs
- EntityContainerRelationshipSetEnd.cs
- AnimatedTypeHelpers.cs
- DesignerRegionCollection.cs
- XsltSettings.cs
- LayoutTableCell.cs
- ConditionedDesigner.cs
- CanonicalFormWriter.cs
- Quad.cs
- CookieHandler.cs
- TextSpanModifier.cs
- DynamicMethod.cs
- PreservationFileReader.cs
- EntityDataSourceWizardForm.cs
- PropertyChangeTracker.cs
- CheckBoxRenderer.cs
- Graph.cs
- GlyphsSerializer.cs
- RectangleHotSpot.cs
- StrongTypingException.cs
- ImageButton.cs
- SqlReferenceCollection.cs
- RtType.cs
- Material.cs
- OleDbTransaction.cs
- ColorAnimation.cs
- IssuanceLicense.cs
- CompositeControl.cs
- HitTestParameters3D.cs
- XmlNullResolver.cs
- ASCIIEncoding.cs
- NumberSubstitution.cs
- TableItemPattern.cs
- COM2IProvidePropertyBuilderHandler.cs
- PixelFormat.cs
- MemberDescriptor.cs
- BitmapMetadataBlob.cs
- CollectionViewGroupRoot.cs
- EnvironmentPermission.cs
- RNGCryptoServiceProvider.cs
- ExpressionLink.cs