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
- DataTableMapping.cs
- HtmlEncodedRawTextWriter.cs
- EncryptedKey.cs
- CodeIdentifier.cs
- XhtmlCssHandler.cs
- OLEDB_Util.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- RoleGroupCollection.cs
- Grid.cs
- RowUpdatingEventArgs.cs
- SoapCommonClasses.cs
- DataGridViewRowConverter.cs
- InvalidProgramException.cs
- SplashScreenNativeMethods.cs
- SqlCacheDependencyDatabaseCollection.cs
- X509CertificateTokenFactoryCredential.cs
- JsonDeserializer.cs
- DebugView.cs
- WithParamAction.cs
- QilChoice.cs
- ArgumentReference.cs
- HttpServerUtilityWrapper.cs
- MembershipPasswordException.cs
- ComPlusAuthorization.cs
- OracleConnectionString.cs
- Activation.cs
- GridView.cs
- Crc32.cs
- StringWriter.cs
- CompilerParameters.cs
- PageWrapper.cs
- InvalidTimeZoneException.cs
- SetIterators.cs
- SmtpNegotiateAuthenticationModule.cs
- HtmlElementEventArgs.cs
- EmptyCollection.cs
- SystemException.cs
- BasicKeyConstraint.cs
- MouseActionConverter.cs
- EventLogPermissionHolder.cs
- ApplicationDirectoryMembershipCondition.cs
- DateTime.cs
- GorillaCodec.cs
- WebEventCodes.cs
- PersistNameAttribute.cs
- SimpleLine.cs
- DisplayNameAttribute.cs
- AdornerDecorator.cs
- HeaderPanel.cs
- InvalidCastException.cs
- NonBatchDirectoryCompiler.cs
- MethodExpr.cs
- BindingCompleteEventArgs.cs
- WinFormsUtils.cs
- ConcurrentDictionary.cs
- TraceListeners.cs
- AutoFocusStyle.xaml.cs
- ThemeDictionaryExtension.cs
- DesignerLoader.cs
- MemberDescriptor.cs
- AppSettingsExpressionEditor.cs
- COM2EnumConverter.cs
- SocketPermission.cs
- ObjectViewListener.cs
- GetMemberBinder.cs
- WindowsHyperlink.cs
- ObjectStateManagerMetadata.cs
- PeerApplicationLaunchInfo.cs
- OraclePermission.cs
- PolicyException.cs
- XmlSchemaInferenceException.cs
- LinqMaximalSubtreeNominator.cs
- AdRotator.cs
- UIElement3D.cs
- AdornedElementPlaceholder.cs
- StateItem.cs
- DataGridViewUtilities.cs
- DefinitionUpdate.cs
- PathFigure.cs
- JsonReaderWriterFactory.cs
- TdsParser.cs
- DataControlReferenceCollection.cs
- InvokeCompletedEventArgs.cs
- Substitution.cs
- SmtpLoginAuthenticationModule.cs
- LocalTransaction.cs
- DataReceivedEventArgs.cs
- ELinqQueryState.cs
- InvalidFilterCriteriaException.cs
- StructuredCompositeActivityDesigner.cs
- MailSettingsSection.cs
- SystemNetHelpers.cs
- ProfileSettings.cs
- AvTraceDetails.cs
- DiffuseMaterial.cs
- AutoResizedEvent.cs
- ViewKeyConstraint.cs
- DecodeHelper.cs
- XsdDateTime.cs
- CompilationUnit.cs