IAttributeList.GetValue 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetValue(Int32) |
已过时.
返回列表中的属性的值(按位置)。 |
GetValue(String) |
已过时.
返回列表中的属性的值(按名称)。 |
GetValue(Int32)
注意
deprecated
返回列表中的属性的值(按位置)。
[Android.Runtime.Register("getValue", "(I)Ljava/lang/String;", "GetGetValue_IHandler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public string? GetValue (int i);
[<Android.Runtime.Register("getValue", "(I)Ljava/lang/String;", "GetGetValue_IHandler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member GetValue : int -> string
参数
- i
- Int32
列表中属性的索引(从 0 开始)。
返回
作为字符串的属性值,如果索引超过范围,则为 null。
- 属性
注解
返回列表中的属性的值(按位置)。
如果属性值是标记列表(IDREFS、ENTITIES 或 NMTOKENS),则令牌将串联成用空格分隔的单个字符串。
适用于 . 的 org.xml.sax.AttributeList.getValue(int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
另请参阅
适用于
GetValue(String)
注意
deprecated
返回列表中的属性的值(按名称)。
[Android.Runtime.Register("getValue", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public string? GetValue (string? name);
[<Android.Runtime.Register("getValue", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetValue_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member GetValue : string -> string
参数
- name
- String
要返回的属性的名称
返回
作为字符串的属性值,如果没有此类属性,则为 null。
- 属性
注解
返回列表中的属性的值(按名称)。
返回值与 getValue(int)的返回值相同。
如果属性名称在文档中具有命名空间前缀,则应用程序必须在此处包含前缀。
适用于 . 的 org.xml.sax.AttributeList.getValue(java.lang.String)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。