语言

ExifInterface.GetAttributeInt(String, Int32) 方法

定义

返回指定标记的整数值。

[Android.Runtime.Register("getAttributeInt", "(Ljava/lang/String;I)I", "GetGetAttributeInt_Ljava_lang_String_IHandler")]
public virtual int GetAttributeInt(string tag, int defaultValue);
[<Android.Runtime.Register("getAttributeInt", "(Ljava/lang/String;I)I", "GetGetAttributeInt_Ljava_lang_String_IHandler")>]
abstract member GetAttributeInt : string * int -> int
override this.GetAttributeInt : string * int -> int

参数

tag
String

标记的名称。

defaultValue
Int32

如果标记不可用,则返回的值。

返回

标记的整数值,或者 defaultValue 标记缺失或无法转换为整数。

特性

注解

返回指定标记的整数值。 如果图像文件中没有此类标记,或者无法将值分析为整数,则返回 defaultValue。

Java文档android.media.ExifInterface.getAttributeInt(java.lang.String, int)。

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

适用于