다음을 통해 공유


NetworkInterface.InterfaceAddresses Property

Definition

Get a List of all or a subset of the InterfaceAddresses of this network interface.

public System.Collections.Generic.IList<Java.Net.InterfaceAddress>? InterfaceAddresses { [Android.Runtime.Register("getInterfaceAddresses", "()Ljava/util/List;", "")] get; }
[<get: Android.Runtime.Register("getInterfaceAddresses", "()Ljava/util/List;", "")>]
member this.InterfaceAddresses : System.Collections.Generic.IList<Java.Net.InterfaceAddress>

Property Value

a List object with all or a subset of the InterfaceAddresss of this network interface

Attributes

Remarks

Get a List of all or a subset of the InterfaceAddresses of this network interface.

If there is a security manager, its checkConnect method is called with the InetAddress for each InterfaceAddress. Only InterfaceAddresses where the checkConnect doesn't throw a SecurityException will be returned in the List.

Added in 1.6.

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

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