AttributesImpl.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) |
Return an attribute's type by index. |
GetType(String) |
Look up an attribute's type by qualified (prefixed) name. |
GetType(String, String) |
Look up an attribute's type by Namespace-qualified name. |
GetType(Int32)
Return an attribute's type by index.
[Android.Runtime.Register("getType", "(I)Ljava/lang/String;", "GetGetType_IHandler")]
public virtual string? GetType (int index);
[<Android.Runtime.Register("getType", "(I)Ljava/lang/String;", "GetGetType_IHandler")>]
override this.GetType : int -> string
Parameters
- index
- Int32
The attribute's index (zero-based).
Returns
The attribute's type, "CDATA" if the type is unknown, or null if the index is out of bounds.
Implements
- Attributes
Remarks
Return an attribute's type by index.
Java documentation for org.xml.sax.helpers.AttributesImpl.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)
Look up an attribute's type by qualified (prefixed) name.
[Android.Runtime.Register("getType", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetType_Ljava_lang_String_Handler")]
public virtual string? GetType (string? qName);
[<Android.Runtime.Register("getType", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetType_Ljava_lang_String_Handler")>]
override this.GetType : string -> string
Parameters
- qName
- String
The qualified name.
Returns
The attribute's type, or null if there is no matching attribute.
Implements
- Attributes
Remarks
Look up an attribute's type by qualified (prefixed) name.
Java documentation for org.xml.sax.helpers.AttributesImpl.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.
See also
Applies to
GetType(String, String)
Look up an attribute's type by Namespace-qualified name.
[Android.Runtime.Register("getType", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetType_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual string? GetType (string? uri, string? localName);
[<Android.Runtime.Register("getType", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetType_Ljava_lang_String_Ljava_lang_String_Handler")>]
override this.GetType : string * string -> string
Parameters
- uri
- String
The Namespace URI, or the empty string for a name with no explicit Namespace URI.
- localName
- String
The local name.
Returns
The attribute's type, or null if there is no matching attribute.
Implements
- Attributes
Remarks
Look up an attribute's type by Namespace-qualified name.
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
- <xref:Org.Xml.Sax.IAttributes.GetType(System.String%2c+System.String)>