Dela via


NetworkInterface.Index Property

Definition

Returns the index of this network interface.

public int Index { [Android.Runtime.Register("getIndex", "()I", "")] get; }
[<get: Android.Runtime.Register("getIndex", "()I", "")>]
member this.Index : int

Property Value

the index of this network interface or -1 if the index is unknown

Attributes

Remarks

Returns the index of this network interface. The index is an integer greater or equal to zero, or -1 for unknown. This is a system specific value and interfaces with the same name can have different indexes on different machines.

Added in 1.7.

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

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