SchemaFactory.GetFeature(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
查找功能标志的值。
[Android.Runtime.Register("getFeature", "(Ljava/lang/String;)Z", "GetGetFeature_Ljava_lang_String_Handler")]
public virtual bool GetFeature (string? name);
[<Android.Runtime.Register("getFeature", "(Ljava/lang/String;)Z", "GetGetFeature_Ljava_lang_String_Handler")>]
abstract member GetFeature : string -> bool
override this.GetFeature : string -> bool
参数
- name
- String
功能名称,它是非 null 完全限定 URI。
返回
特征的当前值(true 或 false)。
- 属性
例外
如果无法分配或检索特征值。
SchemaFactory当识别功能名称但目前无法确定其值时。
如果 name 参数为 null,则为 。
注解
查找功能标志的值。
功能名称是任何完全限定的 URI。 SchemaFactory
可以识别特征名称,但暂时无法返回其值。
实现者是免费的(并鼓励)使用基于自己的 URI 构建的名称来发明自己的功能。
适用于 . 的 javax.xml.validation.SchemaFactory.getFeature(java.lang.String)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
另请参阅
- <xref:Javax.Xml.Validation.SchemaFactory.SetFeature(System.String%2c+System.Boolean)>