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
- ColorAnimationBase.cs
- OracleString.cs
- ServiceOperationDetailViewControl.cs
- TabItemWrapperAutomationPeer.cs
- XmlSchemaSimpleContentRestriction.cs
- RoleGroup.cs
- SqlDependencyListener.cs
- NativeWrapper.cs
- SettingsAttributes.cs
- AppSecurityManager.cs
- ToolStripContainer.cs
- SendKeys.cs
- ThousandthOfEmRealDoubles.cs
- UIPropertyMetadata.cs
- ConstraintStruct.cs
- XmlILConstructAnalyzer.cs
- hresults.cs
- GroupQuery.cs
- DataGridViewCheckBoxColumn.cs
- TreeNodeEventArgs.cs
- WebPartTransformer.cs
- UInt64.cs
- DataBindingCollection.cs
- SolidColorBrush.cs
- IItemProperties.cs
- FileDialogPermission.cs
- exports.cs
- TypeResolver.cs
- CommandBinding.cs
- ObjectManager.cs
- CodeCatchClauseCollection.cs
- UnsafeNativeMethods.cs
- SqlConnectionString.cs
- SafeNativeMethods.cs
- DefaultValueConverter.cs
- Empty.cs
- DWriteFactory.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- SecurityContextKeyIdentifierClause.cs
- TypeSemantics.cs
- XslNumber.cs
- BinaryFormatterSinks.cs
- TemplateBindingExpressionConverter.cs
- DataGrid.cs
- MDIWindowDialog.cs
- DataGridViewCellCollection.cs
- Stack.cs
- TextPatternIdentifiers.cs
- RotateTransform.cs
- BindingExpressionUncommonField.cs
- SqlCaseSimplifier.cs
- OracleDataAdapter.cs
- AttachedPropertyBrowsableAttribute.cs
- WindowsServiceElement.cs
- ValidationUtility.cs
- AdapterUtil.cs
- hwndwrapper.cs
- DocumentViewerConstants.cs
- SyncMethodInvoker.cs
- Paragraph.cs
- TextFormatterImp.cs
- OleDbDataAdapter.cs
- CompiledRegexRunner.cs
- FileVersionInfo.cs
- ContractMapping.cs
- InputBinding.cs
- HuffModule.cs
- DataControlField.cs
- ObjectSecurity.cs
- BasicHttpMessageSecurity.cs
- Comparer.cs
- BamlMapTable.cs
- DataColumnSelectionConverter.cs
- Msec.cs
- GC.cs
- StringUtil.cs
- QueryTaskGroupState.cs
- SystemIPInterfaceStatistics.cs
- StateMachineSubscription.cs
- IncrementalCompileAnalyzer.cs
- Ray3DHitTestResult.cs
- ValidatedControlConverter.cs
- ClaimTypeRequirement.cs
- SystemTcpStatistics.cs
- HandleCollector.cs
- CalendarTable.cs
- TraceUtility.cs
- AddInToken.cs
- WindowsAuthenticationEventArgs.cs
- WindowsComboBox.cs
- PackUriHelper.cs
- VScrollProperties.cs
- DynamicField.cs
- StylusPlugInCollection.cs
- ResumeStoryboard.cs
- HttpClientCredentialType.cs
- MenuEventArgs.cs
- AttributeProviderAttribute.cs
- LogicalExpressionEditor.cs
- DesignerActionPanel.cs