Share via


TypeInfoProvider.GetAttributeTypeInfo(Int32) Method

Definition

Returns the immutable TypeInfo object for the specified attribute of the current element.

[Android.Runtime.Register("getAttributeTypeInfo", "(I)Lorg/w3c/dom/TypeInfo;", "GetGetAttributeTypeInfo_IHandler")]
public abstract Org.W3c.Dom.ITypeInfo? GetAttributeTypeInfo (int index);
[<Android.Runtime.Register("getAttributeTypeInfo", "(I)Lorg/w3c/dom/TypeInfo;", "GetGetAttributeTypeInfo_IHandler")>]
abstract member GetAttributeTypeInfo : int -> Org.W3c.Dom.ITypeInfo

Parameters

index
Int32

The index of the attribute. The same index for the org.xml.sax.Attributes object passed to the startElement callback.

Returns

An immutable TypeInfo object that represents the type of the specified attribute. Note that the caller can keep references to the obtained TypeInfo longer than the callback scope.

             Otherwise, this method returns
             null if the validator is unable to
             determine the type.
Attributes

Exceptions

If the index is invalid.

If this method is called from other IContentHandler methods.

Remarks

Returns the immutable TypeInfo object for the specified attribute of the current element.

The method may only be called by the startElement event of the org.xml.sax.ContentHandler that the application sets to the ValidatorHandler.

Java documentation for javax.xml.validation.TypeInfoProvider.getAttributeTypeInfo(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