Os.If_nametoindex(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
See if_nametoindex(3).
[Android.Runtime.Register("if_nametoindex", "(Ljava/lang/String;)I", "", ApiSince=26)]
public static int If_nametoindex(string? name);
[<Android.Runtime.Register("if_nametoindex", "(Ljava/lang/String;)I", "", ApiSince=26)>]
static member If_nametoindex : string -> int
Parameters
- name
- String
The name of the network interface.
Returns
The interface index, or 0 if the name cannot be resolved.
- Attributes
Remarks
See if_nametoindex(3).
Java documentation for android.system.Os.if_nametoindex(java.lang.String).
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.