Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } // 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Control.cs
- SmtpSection.cs
- XmlSignificantWhitespace.cs
- PrintDialogException.cs
- ZipPackage.cs
- SqlConnectionStringBuilder.cs
- shaperfactoryquerycacheentry.cs
- SendReply.cs
- COM2ComponentEditor.cs
- LinqDataSourceContextEventArgs.cs
- UInt16Converter.cs
- CodeLinePragma.cs
- PointF.cs
- SchemaMapping.cs
- AdvancedBindingPropertyDescriptor.cs
- RootNamespaceAttribute.cs
- SystemIPv4InterfaceProperties.cs
- PassportAuthentication.cs
- ItemContainerGenerator.cs
- OdbcFactory.cs
- XmlElementList.cs
- AccessDataSourceView.cs
- PageHandlerFactory.cs
- ContainerVisual.cs
- TraceHandler.cs
- _CacheStreams.cs
- Point4DValueSerializer.cs
- HostSecurityManager.cs
- ContentIterators.cs
- SerializerWriterEventHandlers.cs
- StylusPlugInCollection.cs
- CqlParser.cs
- CqlQuery.cs
- CopyNamespacesAction.cs
- DCSafeHandle.cs
- TreeBuilder.cs
- StylusButton.cs
- NamedObject.cs
- QilXmlReader.cs
- DictionaryManager.cs
- UpDownBaseDesigner.cs
- AuthenticationConfig.cs
- DataContractJsonSerializer.cs
- RecommendedAsConfigurableAttribute.cs
- SmtpNetworkElement.cs
- DataTablePropertyDescriptor.cs
- ReaderWriterLock.cs
- TraceUtils.cs
- SyndicationDeserializer.cs
- DynamicResourceExtensionConverter.cs
- ValidationSummary.cs
- DragStartedEventArgs.cs
- FontDifferentiator.cs
- ExecutedRoutedEventArgs.cs
- SymbolMethod.cs
- SecurityPermission.cs
- CompositionTarget.cs
- ExpressionContext.cs
- WindowShowOrOpenTracker.cs
- CustomActivityDesigner.cs
- CapacityStreamGeometryContext.cs
- SessionKeyExpiredException.cs
- TraceSource.cs
- SerialPinChanges.cs
- ProfileEventArgs.cs
- SourceElementsCollection.cs
- WizardStepBase.cs
- AggregateNode.cs
- _BasicClient.cs
- TextServicesHost.cs
- CustomValidator.cs
- WeakReference.cs
- PackageRelationshipSelector.cs
- TypographyProperties.cs
- GatewayDefinition.cs
- TemplateManager.cs
- Trace.cs
- ReadWriteControlDesigner.cs
- TabControl.cs
- ValidationResult.cs
- BaseCAMarshaler.cs
- HtmlTable.cs
- HitTestResult.cs
- DockPatternIdentifiers.cs
- TextServicesDisplayAttribute.cs
- XmlNavigatorFilter.cs
- UniqueIdentifierService.cs
- ToolStripTextBox.cs
- EventHandlers.cs
- Thickness.cs
- XmlDictionaryReaderQuotasElement.cs
- CompilerGlobalScopeAttribute.cs
- FormViewUpdatedEventArgs.cs
- WebPartTransformer.cs
- ProfileSettings.cs
- SerializationInfoEnumerator.cs
- XsltCompileContext.cs
- EntityCommandExecutionException.cs
- ExpressionEditor.cs
- ModelItemCollectionImpl.cs