IAttributeList.GetType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetType(Int32) |
Obsolete.
Return the type of an attribute in the list (by position). |
GetType(String) |
Obsolete.
Return the type of an attribute in the list (by name). |
GetType(Int32)
Caution
deprecated
Return the type of an attribute in the list (by position).
[Android.Runtime.Register("getType", "(I)Ljava/lang/String;", "GetGetType_IHandler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public string? GetType (int i);
[<Android.Runtime.Register("getType", "(I)Ljava/lang/String;", "GetGetType_IHandler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member GetType : int -> string
Parameters
- i
- Int32
The index of the attribute in the list (starting at 0).
Returns
The attribute type as a string, or null if the index is out of range.
- Attributes
Remarks
Return the type of an attribute in the list (by position).
The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).
If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, "Attribute-Value Normalization").
For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".
Java documentation for org.xml.sax.AttributeList.getType(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.
See also
Applies to
GetType(String)
Caution
deprecated
Return the type of an attribute in the list (by name).
[Android.Runtime.Register("getType", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetType_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public string? GetType (string? name);
[<Android.Runtime.Register("getType", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetType_Ljava_lang_String_Handler:Org.Xml.Sax.IAttributeListInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member GetType : string -> string
Parameters
- name
- String
The name of the attribute.
Returns
The attribute type as a string, or null if no such attribute exists.
- Attributes
Remarks
Return the type of an attribute in the list (by name).
The return value is the same as the return value for getType(int).
If the attribute name has a namespace prefix in the document, the application must include the prefix here.
Java documentation for org.xml.sax.AttributeList.getType(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.