共用方式為


AttributeListImpl.Clear Method

Definition

Caution

deprecated

Clear the attribute list.

[Android.Runtime.Register("clear", "()V", "GetClearHandler")]
[System.Obsolete("deprecated")]
public virtual void Clear ();
[<Android.Runtime.Register("clear", "()V", "GetClearHandler")>]
[<System.Obsolete("deprecated")>]
abstract member Clear : unit -> unit
override this.Clear : unit -> unit
Attributes

Remarks

Clear the attribute list.

SAX parser writers can use this method to reset the attribute list between DocumentHandler.startElement events. Normally, it will make sense to reuse the same AttributeListImpl object rather than allocating a new one each time.

Java documentation for org.xml.sax.helpers.AttributeListImpl.clear().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also

  • <xref:Org.Xml.Sax.IDocumentHandler.StartElement(System.String%2c+Org.Xml.Sax.IAttributeList)>