ListViewDeleteEventArgs.Keys 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得一個欄位名稱/值對的字典,代表要刪除項目的主鍵或鍵。
public:
property System::Collections::Specialized::IOrderedDictionary ^ Keys { System::Collections::Specialized::IOrderedDictionary ^ get(); };
public System.Collections.Specialized.IOrderedDictionary Keys { get; }
member this.Keys : System.Collections.Specialized.IOrderedDictionary
Public ReadOnly Property Keys As IOrderedDictionary
屬性值
一個包含代表要刪除項目主鍵的名稱/值對的物件。
備註
當 DataKeyNames 控制項的屬性 ListView 設定時,利用該 Keys 屬性存取要刪除項目中主鍵的值。
備註
此性質僅包含關鍵欄位。 要存取非鍵欄位的值,請使用屬性。Values
Keys字典會自動填入屬性中DataKeyNames指定的欄位名稱/值對。 若主鍵包含多個欄位,則每個鍵欄位會為字典新增 Keys 獨立條目。
要確定鍵欄位的名稱,請使用DictionaryEntry.Key字典中包含Keys的物件的屬性DictionaryEntry。 要確定鍵欄位的值,請使用屬性 DictionaryEntry.Value 。