Dela via


Attributes2Impl.SetDeclared(Int32, Boolean) Method

Definition

Assign a value to the "declared" flag of a specific attribute.

[Android.Runtime.Register("setDeclared", "(IZ)V", "GetSetDeclared_IZHandler")]
public virtual void SetDeclared (int index, bool value);
[<Android.Runtime.Register("setDeclared", "(IZ)V", "GetSetDeclared_IZHandler")>]
abstract member SetDeclared : int * bool -> unit
override this.SetDeclared : int * bool -> unit

Parameters

index
Int32

The index of the attribute (zero-based).

value
Boolean

The desired flag value.

Attributes

Exceptions

When the supplied index does not identify an attribute.

Remarks

Assign a value to the "declared" flag of a specific attribute. This is normally needed only for attributes of type CDATA, including attributes whose type is changed to or from CDATA.

Java documentation for org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean).

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.Helpers.AttributesImpl.SetType(System.Int32%2c+System.String)>