Condividi tramite


NetworkInterface.InetAddresses Property

Definition

Convenience method to return an Enumeration with all or a subset of the InetAddresses bound to this network interface.

public Java.Util.IEnumeration? InetAddresses { [Android.Runtime.Register("getInetAddresses", "()Ljava/util/Enumeration;", "")] get; }
[<get: Android.Runtime.Register("getInetAddresses", "()Ljava/util/Enumeration;", "")>]
member this.InetAddresses : Java.Util.IEnumeration

Property Value

an Enumeration object with all or a subset of the InetAddresses bound to this network interface

Attributes

Remarks

Convenience method to return an Enumeration with all or a subset of the InetAddresses bound to this network interface.

If there is a security manager, its checkConnect method is called for each InetAddress. Only InetAddresses where the checkConnect doesn't throw a SecurityException will be returned in the Enumeration. However, if the caller has the NetPermission("getNetworkInformation") permission, then all InetAddresses are returned.

Java documentation for java.net.NetworkInterface.getInetAddresses().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to