ListViewInsertedEventArgs.Values 屬性

定義

取得已插入之資料錄的欄位名稱/值組。

public:
 property System::Collections::Specialized::IOrderedDictionary ^ Values { System::Collections::Specialized::IOrderedDictionary ^ get(); };
public System.Collections.Specialized.IOrderedDictionary Values { get; }
member this.Values : System.Collections.Specialized.IOrderedDictionary
Public ReadOnly Property Values As IOrderedDictionary

屬性值

已插入之資料錄的欄位名稱/值組。

備註

Values使用 屬性來存取插入記錄的欄位值。 例如,您可以使用這些值來保留插入記錄的記錄。

屬性會 Values 傳回實 OrderedDictionary 作 介面的物件 IOrderedDictionary 。 物件 OrderedDictionary 包含 DictionaryEntry 代表插入記錄欄位的物件。 若要存取功能變數名稱,請使用 OrderedDictionary.Keys 物件的 OrderedDictionary 屬性。 同樣地,您可以使用 屬性來存取域值 OrderedDictionary.Values

注意

做為快捷方式,您也可以使用 物件的索引子 OrderedDictionary 直接存取域值。 使用索引子的優點是它會直接傳回域值。 依賴欄位順序的資料來源控制項 (,例如 AccessDataSource) 只能依索引存取域值。

適用於

另請參閱