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
- ConfigsHelper.cs
- Query.cs
- SchemaObjectWriter.cs
- CodeTypeParameter.cs
- OleStrCAMarshaler.cs
- ProfessionalColors.cs
- ExceptionHandlers.cs
- Misc.cs
- ScriptingRoleServiceSection.cs
- MethodExpression.cs
- TreeWalker.cs
- ContextStaticAttribute.cs
- TrackingWorkflowEventArgs.cs
- Run.cs
- ProcessHostConfigUtils.cs
- WriteableBitmap.cs
- Transform.cs
- EmissiveMaterial.cs
- HiddenFieldDesigner.cs
- HttpFileCollectionBase.cs
- DispatcherExceptionEventArgs.cs
- MiniCustomAttributeInfo.cs
- BitSet.cs
- MatrixValueSerializer.cs
- DataGridItemEventArgs.cs
- SingleAnimationBase.cs
- EventLogRecord.cs
- ConfigViewGenerator.cs
- ListViewInsertEventArgs.cs
- DataGridViewTopRowAccessibleObject.cs
- ChannelDispatcherBase.cs
- Win32Native.cs
- ClientConfigurationSystem.cs
- PerformanceCounterCategory.cs
- EntityConnectionStringBuilder.cs
- HttpStaticObjectsCollectionWrapper.cs
- DrawingGroup.cs
- EditingScope.cs
- RedistVersionInfo.cs
- RoleManagerEventArgs.cs
- DataContractSet.cs
- ToolStripPanelRenderEventArgs.cs
- DiagnosticsConfigurationHandler.cs
- CodeEntryPointMethod.cs
- ServiceProviders.cs
- Completion.cs
- SafeNativeMethods.cs
- ProtectedProviderSettings.cs
- SafeEventHandle.cs
- DateTimeSerializationSection.cs
- InfoCardSymmetricAlgorithm.cs
- EncryptedPackage.cs
- TreeNodeCollection.cs
- InputReportEventArgs.cs
- AppDomainInstanceProvider.cs
- BStrWrapper.cs
- KeySplineConverter.cs
- LightweightCodeGenerator.cs
- ImmutableClientRuntime.cs
- CurrentChangingEventManager.cs
- MarkupCompilePass2.cs
- DefaultValueTypeConverter.cs
- DependentList.cs
- GridViewColumn.cs
- SerialReceived.cs
- DataGridViewHitTestInfo.cs
- RectangleConverter.cs
- SchemaDeclBase.cs
- PartialClassGenerationTask.cs
- UnsafeNativeMethods.cs
- PasswordTextContainer.cs
- ExpressionEditorAttribute.cs
- RegexRunner.cs
- SqlUDTStorage.cs
- Label.cs
- Menu.cs
- PagesChangedEventArgs.cs
- WSTrustFeb2005.cs
- IDReferencePropertyAttribute.cs
- OracleRowUpdatingEventArgs.cs
- WebBrowserDocumentCompletedEventHandler.cs
- KerberosSecurityTokenProvider.cs
- CodeRegionDirective.cs
- ListViewEditEventArgs.cs
- ButtonChrome.cs
- TextElementEnumerator.cs
- SqlClientPermission.cs
- BitmapEffectGroup.cs
- FormatPage.cs
- InputBinder.cs
- CodeSubDirectory.cs
- FixedPageProcessor.cs
- FaultConverter.cs
- PointCollection.cs
- SupportsEventValidationAttribute.cs
- DbConnectionPoolCounters.cs
- AssemblyInfo.cs
- DataGridViewTextBoxColumn.cs
- SendMailErrorEventArgs.cs
- LicenseContext.cs