Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / NetworkInterface.cs / 1305376 / 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
- ItemsChangedEventArgs.cs
- DatatypeImplementation.cs
- wmiprovider.cs
- SamlAuthorizationDecisionClaimResource.cs
- IncrementalCompileAnalyzer.cs
- ADMembershipUser.cs
- IntSecurity.cs
- SQLBoolean.cs
- unitconverter.cs
- CollectionConverter.cs
- NativeMethods.cs
- ReadOnlyCollectionBase.cs
- GCHandleCookieTable.cs
- Base64Encoder.cs
- ExecutionContext.cs
- PermissionSetEnumerator.cs
- AllMembershipCondition.cs
- PaginationProgressEventArgs.cs
- TextEvent.cs
- ToolBarOverflowPanel.cs
- OutOfProcStateClientManager.cs
- RemoveStoryboard.cs
- PropertyIdentifier.cs
- TypeConverterValueSerializer.cs
- FixedFindEngine.cs
- CheckoutException.cs
- RoleManagerEventArgs.cs
- PriorityQueue.cs
- BookmarkScopeManager.cs
- HtmlContainerControl.cs
- StylusEditingBehavior.cs
- fixedPageContentExtractor.cs
- DataGridCellsPanel.cs
- WebUtil.cs
- TickBar.cs
- Padding.cs
- SortKey.cs
- XmlByteStreamReader.cs
- ToolStripDropDown.cs
- MultiByteCodec.cs
- RIPEMD160Managed.cs
- TreeView.cs
- KernelTypeValidation.cs
- RoleManagerModule.cs
- NamespaceInfo.cs
- RightsManagementInformation.cs
- Tile.cs
- PointLightBase.cs
- XmlDocumentSchema.cs
- XamlInt32CollectionSerializer.cs
- TypeElement.cs
- DynamicActivity.cs
- CqlIdentifiers.cs
- LogLogRecordEnumerator.cs
- CodeExpressionCollection.cs
- BitmapMetadataEnumerator.cs
- DataGridItemCollection.cs
- SqlProviderServices.cs
- SoapElementAttribute.cs
- CodeTryCatchFinallyStatement.cs
- ColorTransformHelper.cs
- Tile.cs
- JavascriptCallbackResponseProperty.cs
- ObjectDataSourceFilteringEventArgs.cs
- DecoderFallback.cs
- StickyNoteAnnotations.cs
- WinEventTracker.cs
- ConstraintCollection.cs
- Mappings.cs
- MethodCallTranslator.cs
- WindowsListViewSubItem.cs
- FixedDocumentSequencePaginator.cs
- NativeMethods.cs
- HtmlInputPassword.cs
- AssociationTypeEmitter.cs
- SkinBuilder.cs
- ComplexPropertyEntry.cs
- DataServiceQueryException.cs
- AuthorizationPolicyTypeElement.cs
- SecurityAppliedMessage.cs
- SchemaImporterExtensionElementCollection.cs
- DataBinding.cs
- TranslateTransform.cs
- VirtualPathProvider.cs
- ChooseAction.cs
- FacetChecker.cs
- PerspectiveCamera.cs
- Rect3D.cs
- OleDbStruct.cs
- CustomErrorsSection.cs
- Page.cs
- Util.cs
- StylusOverProperty.cs
- NameValueSectionHandler.cs
- ViewStateException.cs
- InvalidateEvent.cs
- DirtyTextRange.cs
- ObsoleteAttribute.cs
- ScriptReference.cs
- NullableLongSumAggregationOperator.cs