Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DefaultClaimSet.cs
- TableSectionStyle.cs
- LogRestartAreaEnumerator.cs
- BindingsCollection.cs
- TextRangeEdit.cs
- WorkflowNamespace.cs
- CredentialCache.cs
- CryptoKeySecurity.cs
- TextElement.cs
- JoinTreeSlot.cs
- DesignerAutoFormatStyle.cs
- MailAddressParser.cs
- OrCondition.cs
- ReadContentAsBinaryHelper.cs
- _Connection.cs
- DrawToolTipEventArgs.cs
- MenuEventArgs.cs
- CodeExpressionStatement.cs
- MetabaseSettingsIis7.cs
- ErrorEventArgs.cs
- MsmqHostedTransportConfiguration.cs
- ResourcePart.cs
- RadioButton.cs
- PresentationSource.cs
- ConfigurationStrings.cs
- CompilerGlobalScopeAttribute.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- CacheSection.cs
- RelationshipConverter.cs
- TreeNode.cs
- ValuePatternIdentifiers.cs
- xml.cs
- DirectionalLight.cs
- Pkcs7Recipient.cs
- SqlDependency.cs
- XmlDomTextWriter.cs
- WebPartZoneAutoFormat.cs
- DataGridGeneralPage.cs
- DropDownHolder.cs
- CodeExpressionCollection.cs
- PartialCachingAttribute.cs
- bindurihelper.cs
- BufferedGraphics.cs
- TemplateControlCodeDomTreeGenerator.cs
- IriParsingElement.cs
- BitmapEffectInput.cs
- CaseInsensitiveComparer.cs
- RSAPKCS1SignatureDeformatter.cs
- ReflectionUtil.cs
- HostProtectionException.cs
- HttpResponse.cs
- DataView.cs
- OdbcParameterCollection.cs
- COSERVERINFO.cs
- XmlLanguage.cs
- ProgressiveCrcCalculatingStream.cs
- SafeLocalMemHandle.cs
- ApplicationFileParser.cs
- OdbcConnectionFactory.cs
- SmiMetaData.cs
- TreeNodeBinding.cs
- WindowsRichEditRange.cs
- CurrentChangingEventArgs.cs
- ToolBarPanel.cs
- EventSetter.cs
- SqlDataSourceQueryEditor.cs
- EntityRecordInfo.cs
- XmlMembersMapping.cs
- Publisher.cs
- sqlinternaltransaction.cs
- ValidatorCompatibilityHelper.cs
- ControlOperationInvoker.cs
- FocusWithinProperty.cs
- OneToOneMappingSerializer.cs
- NativeMethods.cs
- TrustSection.cs
- ArrayList.cs
- CharacterBufferReference.cs
- ItemCollection.cs
- RuntimeCompatibilityAttribute.cs
- InputLangChangeEvent.cs
- DataGridLength.cs
- XmlTextReader.cs
- EditCommandColumn.cs
- DeviceContext.cs
- NavigationPropertyEmitter.cs
- SamlAuthorizationDecisionClaimResource.cs
- GridLengthConverter.cs
- DesignerDataColumn.cs
- GeneratedCodeAttribute.cs
- PtsCache.cs
- JsonUriDataContract.cs
- DependencyPropertyConverter.cs
- CompositeFontInfo.cs
- XmlQueryType.cs
- PreApplicationStartMethodAttribute.cs
- ListViewSelectEventArgs.cs
- SqlInfoMessageEvent.cs
- AddInDeploymentState.cs
- DbDeleteCommandTree.cs