語言

XPathItem.ValueAsInt 屬性

定義

當在派生類別中被覆寫時,會得到該項目的值。Int32

public:
 abstract property int ValueAsInt { int get(); };
public abstract int ValueAsInt { get; }
member this.ValueAsInt : int
Public MustOverride ReadOnly Property ValueAsInt As Integer

屬性值

該物品作為 Int32.

例外狀況

該物品的價值格式與該 Int32 類型不符。

嘗試的鑄造圖 Int32 並不成立。

嘗試投擲導致人潮溢出。

備註

該 ValueAsInt 屬性嘗試依據 XPath 2.0 的規則將項目的值轉換為 .NET Int32 類型。

欲了解更多關於命名空間型 System.Xml 別支援的資訊,請參閱 System.Xml 類別中的型別支援。

適用於

另請參閱