Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Token.cs
- XmlJsonWriter.cs
- ParameterBinding.cs
- XmlAttributeCache.cs
- ReadOnlyTernaryTree.cs
- TokenizerHelper.cs
- DbDataAdapter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- PrincipalPermission.cs
- SafeNativeMethods.cs
- TreeViewEvent.cs
- XPathBinder.cs
- ToolStripSeparatorRenderEventArgs.cs
- EventMap.cs
- _SslSessionsCache.cs
- ToolStripDropDown.cs
- WebBrowserContainer.cs
- Keywords.cs
- UiaCoreTypesApi.cs
- ValidatorCollection.cs
- assemblycache.cs
- cookiecollection.cs
- DataServiceRequest.cs
- OperationInfo.cs
- BitStack.cs
- WebPartManager.cs
- Adorner.cs
- PlanCompilerUtil.cs
- ActivityInterfaces.cs
- RuleSettingsCollection.cs
- CustomWebEventKey.cs
- CardSpacePolicyElement.cs
- SystemIPv4InterfaceProperties.cs
- BamlResourceSerializer.cs
- SQLByte.cs
- DebugView.cs
- NullableDecimalSumAggregationOperator.cs
- PeerCustomResolverBindingElement.cs
- RuleSetReference.cs
- ThreadAttributes.cs
- SqlRowUpdatingEvent.cs
- RoleManagerModule.cs
- AssemblyBuilder.cs
- SHA512.cs
- NavigationEventArgs.cs
- EmissiveMaterial.cs
- ReadOnlyDataSource.cs
- BoundPropertyEntry.cs
- EncodingTable.cs
- AddInController.cs
- BounceEase.cs
- followingsibling.cs
- SystemResources.cs
- SymbolTable.cs
- PingReply.cs
- TextRange.cs
- WebPartConnectionsCancelVerb.cs
- FieldBuilder.cs
- ListCardsInFileRequest.cs
- TrackingMemoryStream.cs
- IFlowDocumentViewer.cs
- OletxTransactionManager.cs
- DocumentReference.cs
- HtmlInputControl.cs
- Timer.cs
- GridItemCollection.cs
- SectionVisual.cs
- TextParaClient.cs
- EntityViewContainer.cs
- RelationshipWrapper.cs
- BasicBrowserDialog.cs
- _Rfc2616CacheValidators.cs
- securitycriticaldataformultiplegetandset.cs
- HtmlInputFile.cs
- DesignerActionTextItem.cs
- Dump.cs
- IndependentAnimationStorage.cs
- SqlServer2KCompatibilityAnnotation.cs
- EntityWrapperFactory.cs
- ArrangedElement.cs
- SamlDelegatingWriter.cs
- BrowserDefinition.cs
- _IPv4Address.cs
- XPathSelfQuery.cs
- RewritingProcessor.cs
- FacetDescription.cs
- altserialization.cs
- ForceCopyBuildProvider.cs
- InvalidPipelineStoreException.cs
- MediaPlayer.cs
- Duration.cs
- CDSCollectionETWBCLProvider.cs
- UIAgentMonitorHandle.cs
- ExpressionNode.cs
- CodeLabeledStatement.cs
- WebControlToolBoxItem.cs
- DigitShape.cs
- SoapReflectionImporter.cs
- ProfilePropertyMetadata.cs
- FileUpload.cs