Muokkaa

Jaa


ListViewInsertedEventArgs.Values Property

Definition

Gets field name/value pairs for the inserted record.

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

Property Value

The field name/value pairs for the inserted record.

Remarks

Use the Values property to access the values of the fields for the inserted record. For example, you can use these values to keep a log of inserted records.

The Values property returns an OrderedDictionary object that implements the IOrderedDictionary interface. The OrderedDictionary object contains DictionaryEntry objects that represent the fields of the inserted record. To access the field names, use the OrderedDictionary.Keys property of the OrderedDictionary object. Similarly, you can access the field values by using the OrderedDictionary.Values property.

Note

As a shortcut, you can also use the indexer of the OrderedDictionary object to access the field values directly. The advantage in using the indexer is that it returns field values directly. Data source controls that rely on the field order (such as AccessDataSource) can access field values only by index.

Applies to

See also