HandlerBase.StartElement(String, IAttributeList) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
deprecated
接收項目開頭的通知。
[Android.Runtime.Register("startElement", "(Ljava/lang/String;Lorg/xml/sax/AttributeList;)V", "GetStartElement_Ljava_lang_String_Lorg_xml_sax_AttributeList_Handler")]
[System.Obsolete("deprecated")]
public virtual void StartElement (string? name, Org.Xml.Sax.IAttributeList? attributes);
[<Android.Runtime.Register("startElement", "(Ljava/lang/String;Lorg/xml/sax/AttributeList;)V", "GetStartElement_Ljava_lang_String_Lorg_xml_sax_AttributeList_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member StartElement : string * Org.Xml.Sax.IAttributeList -> unit
override this.StartElement : string * Org.Xml.Sax.IAttributeList -> unit
參數
- name
- String
項目類型名稱。
- attributes
- IAttributeList
指定的或預設屬性。
實作
- 屬性
例外狀況
任何 SAX 例外狀況,可能包裝另一個例外狀況。
備註
接收項目開頭的通知。
根據預設,不執行任何動作。 應用程式寫入器可以在子類別中覆寫此方法,以在每個元素的開頭採取特定動作(例如配置新的樹狀節點或將輸出寫入檔案)。
的 org.xml.sax.HandlerBase.startElement(java.lang.String, org.xml.sax.AttributeList)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
另請參閱
- <xref:Org.Xml.Sax.IDocumentHandler.StartElement(System.String%2c+Org.Xml.Sax.IAttributeList)>