CurrencyManager.GetItemProperties Method

Definition

Gets the property descriptor collection for the underlying list.

C#
public override System.ComponentModel.PropertyDescriptorCollection GetItemProperties();

Returns

A PropertyDescriptorCollection for the list.

Examples

The following code example uses the GetItemProperties method to return a PropertyDescriptorCollection for a BindingManagerBase. The example then prints out the Name and PropertyType of each PropertyDescriptor in the collection.

C#
private void PrintPropertyDescriptions(BindingManagerBase b)
{
    Console.WriteLine("Printing Property Descriptions");
    PropertyDescriptorCollection ps = b.GetItemProperties();
    for(int i = 0; i < ps.Count; i++)
    {
        Console.WriteLine("\t" + ps[i].Name + "\t" + ps[i].PropertyType);
    }
}

Remarks

The PropertyDescriptorCollection for the CurrencyManager is used to specify a column in the list.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also