语言

ContentValues.GetAsShort(String) 方法

定义

获取一个值并将其转换为 Short。

[Android.Runtime.Register("getAsShort", "(Ljava/lang/String;)Ljava/lang/Short;", "")]
public short GetAsShort(string key);
[<Android.Runtime.Register("getAsShort", "(Ljava/lang/String;)Ljava/lang/Short;", "")>]
member this.GetAsShort : string -> int16

参数

key
String

要获取的值

返回

短值;如果值缺失或无法转换,则为 null

特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

Java文档android.content.ContentValues.getAsShort(java.lang.String)。

适用于