IAttributeSet.GetAttributeBooleanValue 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| GetAttributeBooleanValue(Int32, Boolean) | 
						 返回“index”处属性的布尔值。  | 
        	
| GetAttributeBooleanValue(String, String, Boolean) | 
						 返回“attribute”的布尔值。  | 
        	
GetAttributeBooleanValue(Int32, Boolean)
返回“index”处属性的布尔值。
[Android.Runtime.Register("getAttributeBooleanValue", "(IZ)Z", "GetGetAttributeBooleanValue_IZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool GetAttributeBooleanValue(int index, bool defaultValue);
	[<Android.Runtime.Register("getAttributeBooleanValue", "(IZ)Z", "GetGetAttributeBooleanValue_IZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeBooleanValue : int * bool -> bool
	参数
- index
 - Int32
 
所需属性的索引,0...count-1。
- defaultValue
 - Boolean
 
如果未找到该属性,则返回的内容。
返回
生成的值。
- 属性
 
注解
返回“index”处属性的布尔值。
适用于 . 的 android.util.AttributeSet.getAttributeBooleanValue(int, boolean)Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
GetAttributeBooleanValue(String, String, Boolean)
返回“attribute”的布尔值。
[Android.Runtime.Register("getAttributeBooleanValue", "(Ljava/lang/String;Ljava/lang/String;Z)Z", "GetGetAttributeBooleanValue_Ljava_lang_String_Ljava_lang_String_ZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool GetAttributeBooleanValue(string? namespace, string? attribute, bool defaultValue);
	[<Android.Runtime.Register("getAttributeBooleanValue", "(Ljava/lang/String;Ljava/lang/String;Z)Z", "GetGetAttributeBooleanValue_Ljava_lang_String_Ljava_lang_String_ZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeBooleanValue : string * string * bool -> bool
	参数
- namespace
 - String
 
要检索的属性的命名空间。
- attribute
 - String
 
要检索的属性。
- defaultValue
 - Boolean
 
如果未找到该属性,则返回的内容。
返回
生成的值。
- 属性
 
注解
返回“attribute”的布尔值。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。