Idioma

XmlReaderResourceParser.GetAttributeUnsignedIntValue Método

Definição

Sobrecargas

Nome Description
GetAttributeUnsignedIntValue(Int32, Int32)

Retorne o valor do atributo em 'index' como um inteiro decimal sem sinal.

GetAttributeUnsignedIntValue(String, String, Int32)

Retorne o valor de 'attribute' como um inteiro decimal sem sinal.

GetAttributeUnsignedIntValue(Int32, Int32)

Retorne o valor do atributo em 'index' como um inteiro decimal sem sinal.

public int GetAttributeUnsignedIntValue(int index, int defaultValue);
abstract member GetAttributeUnsignedIntValue : int * int -> int
override this.GetAttributeUnsignedIntValue : int * int -> int

Parâmetros

index
Int32

Índice do atributo desejado, 0...count-1.

defaultValue
Int32

O que retornar se o atributo não for encontrado.

Retornos

O valor convertido ou defaultValue se o atributo não existir.

Implementações

Exceções

O valor do atributo não é um inteiro decimal não assinado válido.

Comentários

Este adaptador de leitor XML dá suporte apenas a valores decimais não assinados. Prefixos hexadecimal, como 0x e #, não têm suporte.

Referência do Android para android.util.AttributeSet.getAttributeUnsignedIntValue.

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a

GetAttributeUnsignedIntValue(String, String, Int32)

Retorne o valor de 'attribute' como um inteiro decimal sem sinal.

public int GetAttributeUnsignedIntValue(string? namespaceURI, string? attribute, int defaultValue);
abstract member GetAttributeUnsignedIntValue : string * string * int -> int
override this.GetAttributeUnsignedIntValue : string * string * int -> int

Parâmetros

namespaceURI
String
attribute
String

O atributo a ser recuperado.

defaultValue
Int32

O que retornar se o atributo não for encontrado.

Retornos

O valor convertido ou defaultValue se o atributo não existir.

Implementações

Exceções

O valor do atributo não é um inteiro decimal não assinado válido.

Comentários

Este adaptador de leitor XML dá suporte apenas a valores decimais não assinados. Prefixos hexadecimal, como 0x e #, não têm suporte.

Referência do Android para android.util.AttributeSet.getAttributeUnsignedIntValue.

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a