Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- StylusPointPropertyInfo.cs
- DivideByZeroException.cs
- WebPartRestoreVerb.cs
- LoadMessageLogger.cs
- _NativeSSPI.cs
- SqlFileStream.cs
- TdsValueSetter.cs
- WebBrowserNavigatedEventHandler.cs
- ColorPalette.cs
- Parser.cs
- EnumerableValidator.cs
- ReliabilityContractAttribute.cs
- RefreshPropertiesAttribute.cs
- TargetException.cs
- HandlerFactoryCache.cs
- cookie.cs
- IPCCacheManager.cs
- SortDescription.cs
- VerificationException.cs
- XamlInt32CollectionSerializer.cs
- StateElementCollection.cs
- FontCollection.cs
- NotCondition.cs
- SecurityStateEncoder.cs
- ProvidersHelper.cs
- ClipboardProcessor.cs
- ExpressionBuilder.cs
- XsltCompileContext.cs
- AsyncOperationManager.cs
- MimeXmlImporter.cs
- ClientViaElement.cs
- DataGridViewColumnTypePicker.cs
- ReachSerializer.cs
- BitmapImage.cs
- SchemaConstraints.cs
- TcpTransportSecurityElement.cs
- XmlElementAttributes.cs
- StartUpEventArgs.cs
- Int16.cs
- ProfileSection.cs
- EntityException.cs
- XsltLoader.cs
- Metafile.cs
- InvokeBinder.cs
- CodeExpressionCollection.cs
- WorkflowDebuggerSteppingAttribute.cs
- CodeTypeParameterCollection.cs
- DoubleAnimationBase.cs
- PropertyTabChangedEvent.cs
- DecimalConstantAttribute.cs
- SafeSecurityHandles.cs
- DataSourceCacheDurationConverter.cs
- Size3D.cs
- ScalarType.cs
- BooleanToVisibilityConverter.cs
- PropertyAccessVisitor.cs
- DateTimeFormatInfoScanner.cs
- CheckBoxFlatAdapter.cs
- MembershipValidatePasswordEventArgs.cs
- ClientSideProviderDescription.cs
- HostingEnvironmentException.cs
- AsymmetricKeyExchangeDeformatter.cs
- AssemblyBuilderData.cs
- GeneratedCodeAttribute.cs
- WsatTransactionHeader.cs
- RowCache.cs
- XmlSchemaProviderAttribute.cs
- GeneralTransform3DTo2DTo3D.cs
- AlphaSortedEnumConverter.cs
- SoapTypeAttribute.cs
- QuaternionAnimationBase.cs
- FormsAuthenticationUserCollection.cs
- TdsParser.cs
- DataSet.cs
- TextElementCollectionHelper.cs
- BitmapFrameEncode.cs
- PeerEndPoint.cs
- Mutex.cs
- ZipQueryOperator.cs
- RelationshipConverter.cs
- SystemIPGlobalProperties.cs
- ResourceProperty.cs
- ServiceHttpHandlerFactory.cs
- StoragePropertyMapping.cs
- EventlogProvider.cs
- LineBreakRecord.cs
- EnvelopedPkcs7.cs
- SupportsEventValidationAttribute.cs
- XmlSchemaSubstitutionGroup.cs
- DataGridTable.cs
- SpoolingTask.cs
- ConfigXmlElement.cs
- ConnectionProviderAttribute.cs
- ListBindingHelper.cs
- _NegotiateClient.cs
- Attachment.cs
- PageDeviceFont.cs
- Unit.cs
- RuleConditionDialog.cs
- Point.cs