Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProviderManager.cs
- StrokeRenderer.cs
- BitmapEffectInputData.cs
- PackUriHelper.cs
- WinEventWrap.cs
- PerformanceCounterPermissionEntry.cs
- XmlObjectSerializerReadContext.cs
- WrappedIUnknown.cs
- ScrollableControl.cs
- WorkflowMessageEventArgs.cs
- COM2Properties.cs
- GPStream.cs
- RijndaelCryptoServiceProvider.cs
- GeneralTransform2DTo3DTo2D.cs
- TimerElapsedEvenArgs.cs
- CloudCollection.cs
- OleDbDataAdapter.cs
- AttachedPropertyBrowsableAttribute.cs
- Deflater.cs
- DebugInfoGenerator.cs
- SoapBinding.cs
- Polyline.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- SchemaElementLookUpTable.cs
- CollectionChangeEventArgs.cs
- WorkflowServiceBehavior.cs
- WebPartEditorCancelVerb.cs
- PersonalizationStateInfo.cs
- SimpleType.cs
- TableHeaderCell.cs
- _ConnectStream.cs
- EntityDataSourceStatementEditor.cs
- WsatServiceCertificate.cs
- TypeSemantics.cs
- BulletChrome.cs
- DataGridViewComboBoxColumnDesigner.cs
- PowerStatus.cs
- StateBag.cs
- RootProfilePropertySettingsCollection.cs
- PublisherIdentityPermission.cs
- CodeDOMProvider.cs
- ContextBase.cs
- HtmlMeta.cs
- ListenUriMode.cs
- StackBuilderSink.cs
- SchemaInfo.cs
- SoapHttpTransportImporter.cs
- SmiMetaDataProperty.cs
- VisualStyleInformation.cs
- ServiceProviders.cs
- VirtualPathData.cs
- RegexEditorDialog.cs
- Soap.cs
- EllipseGeometry.cs
- CountAggregationOperator.cs
- XslTransform.cs
- TreeBuilderXamlTranslator.cs
- SecuritySessionClientSettings.cs
- DayRenderEvent.cs
- SiteOfOriginContainer.cs
- MulticastOption.cs
- SID.cs
- PropertyConverter.cs
- EnumBuilder.cs
- ComplexBindingPropertiesAttribute.cs
- WebBrowser.cs
- FontClient.cs
- TdsParserStateObject.cs
- TimersDescriptionAttribute.cs
- DragEventArgs.cs
- FontEmbeddingManager.cs
- _NetworkingPerfCounters.cs
- ResourceReferenceExpression.cs
- SqlParameter.cs
- SimpleRecyclingCache.cs
- AlternationConverter.cs
- WriterOutput.cs
- TraceInternal.cs
- ObjectManager.cs
- Normalizer.cs
- AssemblyAssociatedContentFileAttribute.cs
- HttpVersion.cs
- SspiSecurityTokenParameters.cs
- DescendentsWalker.cs
- StylusOverProperty.cs
- WpfXamlMember.cs
- DispatcherOperation.cs
- SelectedDatesCollection.cs
- Semaphore.cs
- Profiler.cs
- WebContext.cs
- FixUpCollection.cs
- PointIndependentAnimationStorage.cs
- LinkArea.cs
- _IPv6Address.cs
- CompilerResults.cs
- SrgsElement.cs
- ContextStack.cs
- NativeMethods.cs
- VScrollBar.cs