HandlerBase.SetDocumentLocator(ILocator) 方法

定义

注意

deprecated

接收文档事件的定位符对象。

[Android.Runtime.Register("setDocumentLocator", "(Lorg/xml/sax/Locator;)V", "GetSetDocumentLocator_Lorg_xml_sax_Locator_Handler")]
[System.Obsolete("deprecated")]
public virtual void SetDocumentLocator (Org.Xml.Sax.ILocator? locator);
[<Android.Runtime.Register("setDocumentLocator", "(Lorg/xml/sax/Locator;)V", "GetSetDocumentLocator_Lorg_xml_sax_Locator_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetDocumentLocator : Org.Xml.Sax.ILocator -> unit
override this.SetDocumentLocator : Org.Xml.Sax.ILocator -> unit

参数

locator
ILocator

所有 SAX 文档事件的定位符。

实现

属性

注解

接收文档事件的定位符对象。

默认情况下,不执行任何操作。 如果应用程序编写器希望存储定位符以用于其他文档事件,则应用程序编写器可能会在子类中重写此方法。

适用于 . 的 org.xml.sax.HandlerBase.setDocumentLocator(org.xml.sax.Locator)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

另请参阅