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
- RulePatternOps.cs
- TableParaClient.cs
- TypefaceMap.cs
- EntitySqlException.cs
- X509ThumbprintKeyIdentifierClause.cs
- Vector3D.cs
- FloatUtil.cs
- PageWrapper.cs
- EventLogPermissionEntryCollection.cs
- ManipulationDeltaEventArgs.cs
- MaskInputRejectedEventArgs.cs
- ToolStripOverflowButton.cs
- Preprocessor.cs
- EraserBehavior.cs
- X509CertificateChain.cs
- ImageListDesigner.cs
- Debug.cs
- XmlRawWriterWrapper.cs
- ConfigurationException.cs
- EFTableProvider.cs
- Rotation3D.cs
- CmsUtils.cs
- sqlcontext.cs
- HttpApplicationFactory.cs
- TextDecoration.cs
- ApplicationException.cs
- LookupNode.cs
- DetailsView.cs
- SplitterCancelEvent.cs
- XsdValidatingReader.cs
- XsltLoader.cs
- _ListenerAsyncResult.cs
- CompilerGlobalScopeAttribute.cs
- FontConverter.cs
- ReferenceConverter.cs
- DataTableClearEvent.cs
- Odbc32.cs
- ScrollEventArgs.cs
- WizardStepBase.cs
- SqlDataSourceQueryEditor.cs
- FilterQueryOptionExpression.cs
- UnknownBitmapEncoder.cs
- RegexInterpreter.cs
- PostBackOptions.cs
- GlobalItem.cs
- SQLInt64Storage.cs
- SqlVersion.cs
- UniqueIdentifierService.cs
- SchemaDeclBase.cs
- DBPropSet.cs
- DynamicRendererThreadManager.cs
- DataPagerFieldItem.cs
- ListParaClient.cs
- Operator.cs
- StaticExtension.cs
- DesignerTransactionCloseEvent.cs
- RequestQueryParser.cs
- HwndSource.cs
- ByteFacetDescriptionElement.cs
- XmlImplementation.cs
- SwitchLevelAttribute.cs
- DateTimeFormatInfo.cs
- CalculatedColumn.cs
- AuthorizationRuleCollection.cs
- DataGridItemAutomationPeer.cs
- COM2ICategorizePropertiesHandler.cs
- EntityDataSourceWrapper.cs
- WorkflowQueueInfo.cs
- RowsCopiedEventArgs.cs
- TraceHandler.cs
- SendActivityDesigner.cs
- DictionaryTraceRecord.cs
- SecurityManager.cs
- HttpHandler.cs
- XmlCodeExporter.cs
- Property.cs
- ManifestResourceInfo.cs
- TaskHelper.cs
- HScrollProperties.cs
- UTF32Encoding.cs
- FileDialog_Vista_Interop.cs
- TemplateBindingExpressionConverter.cs
- LinqDataSourceInsertEventArgs.cs
- SmiEventSink.cs
- PropVariant.cs
- TreeNodeEventArgs.cs
- HttpCachePolicyElement.cs
- OdbcReferenceCollection.cs
- FormatException.cs
- FlatButtonAppearance.cs
- PopupRoot.cs
- ReadOnlyActivityGlyph.cs
- SQLBytesStorage.cs
- DrawingCollection.cs
- NullableLongSumAggregationOperator.cs
- ToolboxItemFilterAttribute.cs
- LiteralControl.cs
- ToolStripSplitButton.cs
- GridItemCollection.cs
- ServiceOperationListItem.cs