語言

ContentValues.GetAsInteger(String) 方法

定義

取得一個值並轉換成整數。

[Android.Runtime.Register("getAsInteger", "(Ljava/lang/String;)Ljava/lang/Integer;", "")]
public int GetAsInteger(string key);
[<Android.Runtime.Register("getAsInteger", "(Ljava/lang/String;)Ljava/lang/Integer;", "")>]
member this.GetAsInteger : string -> int

參數

key
String

得到的值

傳回

整數值,若值缺失或無法轉換則為空值

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

Java 文件 android.content.ContentValues.getAsInteger(java.lang.String)

適用於