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
- ToolStripSeparatorRenderEventArgs.cs
- ExtentKey.cs
- SecuritySessionServerSettings.cs
- HttpStaticObjectsCollectionBase.cs
- BridgeDataReader.cs
- KnownTypeDataContractResolver.cs
- util.cs
- DataViewSetting.cs
- BinaryMethodMessage.cs
- KeySplineConverter.cs
- EntryIndex.cs
- CodeTypeDelegate.cs
- RichTextBoxConstants.cs
- Timer.cs
- CredentialCache.cs
- PolicyStatement.cs
- VoiceObjectToken.cs
- WebPartConnectVerb.cs
- Error.cs
- SendingRequestEventArgs.cs
- SqlInternalConnectionTds.cs
- ExpressionParser.cs
- SqlDataSourceCustomCommandPanel.cs
- SQLBoolean.cs
- UntypedNullExpression.cs
- DocumentViewer.cs
- RootBrowserWindowAutomationPeer.cs
- GridEntryCollection.cs
- XPathAncestorIterator.cs
- SizeF.cs
- FixedNode.cs
- SimpleApplicationHost.cs
- DefaultTypeArgumentAttribute.cs
- MetadataExchangeClient.cs
- HtmlInputRadioButton.cs
- ApplyImportsAction.cs
- TemplateKeyConverter.cs
- CoreSwitches.cs
- OracleInternalConnection.cs
- Util.cs
- WsdlBuildProvider.cs
- WindowsTitleBar.cs
- HtmlValidationSummaryAdapter.cs
- ClientConvert.cs
- HttpContextServiceHost.cs
- cache.cs
- ParameterSubsegment.cs
- ContentPresenter.cs
- CompilationPass2Task.cs
- ExpressionWriter.cs
- PropertyOverridesTypeEditor.cs
- AnnotationResourceCollection.cs
- DeviceSpecificChoice.cs
- DefaultSection.cs
- ParallelActivityDesigner.cs
- Utils.cs
- GroupQuery.cs
- XmlEncoding.cs
- EntityDataSourceMemberPath.cs
- HashMembershipCondition.cs
- VirtualizingStackPanel.cs
- RequiredFieldValidator.cs
- WinFormsUtils.cs
- UIElement.cs
- LayoutEditorPart.cs
- PropertyEmitter.cs
- TypeNameHelper.cs
- SchemaName.cs
- BaseTreeIterator.cs
- XsdBuilder.cs
- ReverseQueryOperator.cs
- VersionPair.cs
- PassportIdentity.cs
- webeventbuffer.cs
- DragDrop.cs
- OleDbPropertySetGuid.cs
- FastEncoderWindow.cs
- Crc32Helper.cs
- DecoderFallbackWithFailureFlag.cs
- TagNameToTypeMapper.cs
- PlaceHolder.cs
- IsolationInterop.cs
- CaseExpr.cs
- PriorityChain.cs
- pingexception.cs
- ItemsControlAutomationPeer.cs
- PageEventArgs.cs
- HttpBufferlessInputStream.cs
- ClientUtils.cs
- complextypematerializer.cs
- HtmlShim.cs
- Journaling.cs
- X509CertificateCollection.cs
- RequiredAttributeAttribute.cs
- EncryptedPackage.cs
- DateTimeParse.cs
- oledbmetadatacollectionnames.cs
- HtmlInputHidden.cs
- EventLogReader.cs
- DebugControllerThread.cs