XmlAtomicValue.ValueAsLong Propriedade

Definição

Obtém o valor do atributo ou o elemento XML validado como um Int64.Gets the validated XML element or attribute's value as an Int64.

public:
 virtual property long ValueAsLong { long get(); };
public override long ValueAsLong { get; }
member this.ValueAsLong : int64
Public Overrides ReadOnly Property ValueAsLong As Long

Valor da propriedade

Int64

O elemento XML validado ou o valor do atributo como um Int64 .The validated XML element or attribute's value as an Int64.

Exceções

O valor do atributo ou o elemento XML validado não está no formato correto para o tipo Int64.The validated XML element or attribute's value is not in the correct format for the Int64 type.

A tentativa de conversão em Int64 não é válida.The attempted cast to Int64 is not valid.

A tentativa de conversão resultou em um estouro.The attempted cast resulted in an overflow.

Comentários

A ValueAsLong propriedade tenta converter o valor do elemento XML ou atributo validado para o tipo .net de Int64 acordo com as regras XPath 2,0 para a conversão do tipo do item.The ValueAsLong property attempts to convert the value of the validated XML element or attribute to the .NET Int64 type according to the XPath 2.0 rules for casting the item's type.

Para obter mais informações sobre o suporte de tipo no System.Xml namespace, consulte suporte de tipo nas Classes de System.Xml.For more information about type support in the System.Xml namespace, see Type Support in the System.Xml Classes.

Aplica-se a