IAttributes2.IsSpecified Method

Definition

Overloads

IsSpecified(Int32)

Returns true unless the attribute value was provided by DTD defaulting.

IsSpecified(String)

Returns true unless the attribute value was provided by DTD defaulting.

IsSpecified(String, String)

Returns true unless the attribute value was provided by DTD defaulting.

IsSpecified(Int32)

Returns true unless the attribute value was provided by DTD defaulting.

[Android.Runtime.Register("isSpecified", "(I)Z", "GetIsSpecified_IHandler:Org.Xml.Sax.Ext.IAttributes2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool IsSpecified (int index);
[<Android.Runtime.Register("isSpecified", "(I)Z", "GetIsSpecified_IHandler:Org.Xml.Sax.Ext.IAttributes2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member IsSpecified : int -> bool

Parameters

index
Int32

The attribute index (zero-based).

Returns

true if the value was found in the XML text, false if the value was provided by DTD defaulting.

Attributes

Exceptions

When the supplied index does not identify an attribute.

Remarks

Returns true unless the attribute value was provided by DTD defaulting.

Java documentation for org.xml.sax.ext.Attributes2.isSpecified(int).

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

IsSpecified(String)

Returns true unless the attribute value was provided by DTD defaulting.

[Android.Runtime.Register("isSpecified", "(Ljava/lang/String;)Z", "GetIsSpecified_Ljava_lang_String_Handler:Org.Xml.Sax.Ext.IAttributes2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool IsSpecified (string? qName);
[<Android.Runtime.Register("isSpecified", "(Ljava/lang/String;)Z", "GetIsSpecified_Ljava_lang_String_Handler:Org.Xml.Sax.Ext.IAttributes2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member IsSpecified : string -> bool

Parameters

qName
String

The XML qualified (prefixed) name.

Returns

true if the value was found in the XML text, false if the value was provided by DTD defaulting.

Attributes

Exceptions

When the supplied name does not identify an attribute.

Remarks

Returns true unless the attribute value was provided by DTD defaulting.

Java documentation for org.xml.sax.ext.Attributes2.isSpecified(java.lang.String).

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

IsSpecified(String, String)

Returns true unless the attribute value was provided by DTD defaulting.

[Android.Runtime.Register("isSpecified", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetIsSpecified_Ljava_lang_String_Ljava_lang_String_Handler:Org.Xml.Sax.Ext.IAttributes2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool IsSpecified (string? uri, string? localName);
[<Android.Runtime.Register("isSpecified", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetIsSpecified_Ljava_lang_String_Ljava_lang_String_Handler:Org.Xml.Sax.Ext.IAttributes2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member IsSpecified : string * string -> bool

Parameters

uri
String

The Namespace URI, or the empty string if the name has no Namespace URI.

localName
String

The attribute's local name.

Returns

true if the value was found in the XML text, false if the value was provided by DTD defaulting.

Attributes

Exceptions

When the supplied names do not identify an attribute.

Remarks

Returns true unless the attribute value was provided by DTD defaulting.

Remember that since DTDs do not "understand" namespaces, the namespace URI associated with an attribute may not have come from the DTD. The declaration will have applied to the attribute's <em>qName</em>.

Java documentation for org.xml.sax.ext.Attributes2.isSpecified(java.lang.String, java.lang.String).

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