XPathItem.ValueAsInt Propriedade
Definição
public:
abstract property int ValueAsInt { int get(); };
public abstract int ValueAsInt { get; }
member this.ValueAsInt : int
Public MustOverride ReadOnly Property ValueAsInt As Integer
Valor da propriedade
O valor do item como um Int32 .The item's value as an Int32.
Exceções
O valor do item não está no formato correto para o tipo Int32.The item's value is not in the correct format for the Int32 type.
A tentativa de conversão resultou em um estouro.The attempted cast resulted in an overflow.
Comentários
A ValueAsInt propriedade tenta converter o valor do item para o .NET Framework tipo 2,0 de Int32 acordo com as regras XPath 2,0 para a conversão do tipo do item.The ValueAsInt property attempts to convert the value of the item to the .NET Framework 2.0 Int32 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.