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
- XPathBinder.cs
- SettingsAttributes.cs
- SettingsProviderCollection.cs
- MarkupCompilePass1.cs
- SchemaImporter.cs
- coordinator.cs
- UserControlAutomationPeer.cs
- CellTreeNodeVisitors.cs
- CustomAssemblyResolver.cs
- ObjectCache.cs
- HitTestParameters3D.cs
- ObservableDictionary.cs
- HttpAsyncResult.cs
- TypedDatasetGenerator.cs
- safex509handles.cs
- DataGridViewAccessibleObject.cs
- GridViewColumn.cs
- MessageQueuePermissionAttribute.cs
- CompilationSection.cs
- ZipIOFileItemStream.cs
- LeftCellWrapper.cs
- ServerIdentity.cs
- TextRangeEditLists.cs
- RemotingServices.cs
- EntityDataSourceStatementEditorForm.cs
- XmlElementElementCollection.cs
- RewritingValidator.cs
- SHA512.cs
- OutOfProcStateClientManager.cs
- HtmlUtf8RawTextWriter.cs
- SqlUserDefinedAggregateAttribute.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- Constraint.cs
- ThemeableAttribute.cs
- WebServiceClientProxyGenerator.cs
- StringDictionaryEditor.cs
- StorageFunctionMapping.cs
- DecimalAnimationUsingKeyFrames.cs
- LabelEditEvent.cs
- XmlUnspecifiedAttribute.cs
- TrustLevel.cs
- XmlNodeReader.cs
- BrowserInteropHelper.cs
- BatchWriter.cs
- WebPartZone.cs
- PageRanges.cs
- UnsafeNativeMethods.cs
- HwndSubclass.cs
- BindingCollectionElement.cs
- IdleTimeoutMonitor.cs
- SrgsSubset.cs
- Int32Storage.cs
- ViewCellRelation.cs
- CatalogPartCollection.cs
- SocketConnection.cs
- StylusPointPropertyUnit.cs
- BaseCodeDomTreeGenerator.cs
- GridViewItemAutomationPeer.cs
- MaskedTextBoxTextEditor.cs
- TCPClient.cs
- DesignerDataTable.cs
- ClientSettingsSection.cs
- AppLevelCompilationSectionCache.cs
- ExpressionVisitor.cs
- CodeTypeReference.cs
- DispatcherExceptionFilterEventArgs.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ExceptionValidationRule.cs
- ThreadAttributes.cs
- SegmentInfo.cs
- CqlLexerHelpers.cs
- XmlResolver.cs
- JavaScriptString.cs
- UnsafeNativeMethods.cs
- CoTaskMemSafeHandle.cs
- StylusEventArgs.cs
- EventLogSession.cs
- CodeMemberMethod.cs
- SecurityDescriptor.cs
- DataGridViewLayoutData.cs
- WorkflowServiceHostFactory.cs
- SingleTagSectionHandler.cs
- StaticTextPointer.cs
- ResourceLoader.cs
- DbCommandTree.cs
- DataMisalignedException.cs
- QilScopedVisitor.cs
- FilterableAttribute.cs
- BaseProcessor.cs
- DocumentApplicationJournalEntry.cs
- AppSettingsExpressionBuilder.cs
- Emitter.cs
- WebPartVerbCollection.cs
- Int32CAMarshaler.cs
- FixedSOMLineRanges.cs
- ListViewContainer.cs
- TimeoutTimer.cs
- GuidelineSet.cs
- HtmlTableRow.cs
- RenderData.cs