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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TrackingStringDictionary.cs
- EventLogEntryCollection.cs
- ReferenceSchema.cs
- ColumnReorderedEventArgs.cs
- CaseInsensitiveComparer.cs
- DocumentApplicationJournalEntry.cs
- FormCollection.cs
- ElementUtil.cs
- ZipIOLocalFileHeader.cs
- SecurityContext.cs
- PolyQuadraticBezierSegment.cs
- IteratorDescriptor.cs
- XmlUtf8RawTextWriter.cs
- UserPreferenceChangingEventArgs.cs
- DecimalConverter.cs
- DocumentOrderComparer.cs
- Token.cs
- ReadOnlyObservableCollection.cs
- DataControlFieldHeaderCell.cs
- COM2PropertyPageUITypeConverter.cs
- Rfc2898DeriveBytes.cs
- IsolatedStoragePermission.cs
- ListViewItem.cs
- ProcessModelSection.cs
- PhysicalOps.cs
- CreateParams.cs
- IndexedGlyphRun.cs
- TextEditorSelection.cs
- SudsParser.cs
- OledbConnectionStringbuilder.cs
- ConnectionsZone.cs
- DispatcherHooks.cs
- SafeEventHandle.cs
- SafeNativeMethods.cs
- CollectionType.cs
- SimpleBitVector32.cs
- DataGridCommandEventArgs.cs
- WebServiceMethodData.cs
- Substitution.cs
- ToolStripItemClickedEventArgs.cs
- SafeReversePInvokeHandle.cs
- GAC.cs
- AlphabeticalEnumConverter.cs
- OdbcConnectionHandle.cs
- TimelineGroup.cs
- TextServicesCompartmentEventSink.cs
- Vector3DKeyFrameCollection.cs
- DummyDataSource.cs
- ConfigurationLockCollection.cs
- BindingMAnagerBase.cs
- TextParaLineResult.cs
- WmpBitmapEncoder.cs
- SessionStateSection.cs
- X509Certificate2.cs
- GenerateTemporaryTargetAssembly.cs
- Stroke.cs
- ControlEvent.cs
- RemotingSurrogateSelector.cs
- NetworkStream.cs
- SystemIPGlobalProperties.cs
- Margins.cs
- WebPermission.cs
- PathGradientBrush.cs
- TTSVoice.cs
- AstTree.cs
- CallbackValidatorAttribute.cs
- DataGridViewCellStyleBuilderDialog.cs
- FlowDocumentPage.cs
- Base64Decoder.cs
- DeflateStream.cs
- DelayedRegex.cs
- BitmapCodecInfo.cs
- TextBox.cs
- NetTcpBinding.cs
- SoapObjectInfo.cs
- Sentence.cs
- UnsafeNativeMethods.cs
- DbTransaction.cs
- TextSelectionHelper.cs
- CompiledIdentityConstraint.cs
- _Connection.cs
- SafeBitVector32.cs
- ListViewItemMouseHoverEvent.cs
- SQLDateTime.cs
- Span.cs
- MediaPlayerState.cs
- UnknownBitmapDecoder.cs
- HtmlInputControl.cs
- SmtpNetworkElement.cs
- Query.cs
- Button.cs
- ObjectTypeMapping.cs
- _UriSyntax.cs
- BaseContextMenu.cs
- PartialList.cs
- ComplexTypeEmitter.cs
- Vector3DCollectionConverter.cs
- RoutedEventHandlerInfo.cs
- FontSizeConverter.cs
- NameValueConfigurationCollection.cs