共用方式為


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)只能透過索引存取欄位值。

適用於

另請參閱