This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Download Microsoft Edge
More info about Internet Explorer and Microsoft Edge
public:
static System::ComponentModel::PropertyDescriptorCollection ^ GetListItemProperties(System::Object ^ list);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties (object list);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties (object? list);
static member GetListItemProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Shared Function GetListItemProperties (list As Object) As PropertyDescriptorCollection
Parameters
A type that is a list or collection of items.
Returns a
PropertyDescriptorCollection
describing the properties of the item type contained in the list.
A type that is not a list or collection.
Returns a
PropertyDescriptorCollection
describing the properties of the type.
Returns an empty
PropertyDescriptorCollection
.
public:
static System::ComponentModel::PropertyDescriptorCollection ^ GetListItemProperties(System::Object ^ list, cli::array <System::ComponentModel::PropertyDescriptor ^> ^ listAccessors);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties (object list, System.ComponentModel.PropertyDescriptor[] listAccessors);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties (object? list, System.ComponentModel.PropertyDescriptor[]? listAccessors);
static member GetListItemProperties : obj * System.ComponentModel.PropertyDescriptor[] -> System.ComponentModel.PropertyDescriptorCollection
Public Shared Function GetListItemProperties (list As Object, listAccessors As PropertyDescriptor()) As PropertyDescriptorCollection
Parameters
The
PropertyDescriptor
array describing which properties of the data source to examine. This can be
null
.
Returns
public:
static System::ComponentModel::PropertyDescriptorCollection ^ GetListItemProperties(System::Object ^ dataSource, System::String ^ dataMember, cli::array <System::ComponentModel::PropertyDescriptor ^> ^ listAccessors);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties (object dataSource, string dataMember, System.ComponentModel.PropertyDescriptor[] listAccessors);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties (object? dataSource, string? dataMember, System.ComponentModel.PropertyDescriptor[]? listAccessors);
static member GetListItemProperties : obj * string * System.ComponentModel.PropertyDescriptor[] -> System.ComponentModel.PropertyDescriptorCollection
Public Shared Function GetListItemProperties (dataSource As Object, dataMember As String, listAccessors As PropertyDescriptor()) As PropertyDescriptorCollection
Parameters
The
PropertyDescriptor
array describing which properties of the data member to examine. This can be
null
.
Returns
Remarks
The
dataMember
parameter can be
null
, in which case the
GetListItemProperties
method will return property descriptions using the data source and the
PropertyDescriptor
array.
GetListItemProperties
is useful when the data member has properties that are a collection of items and you need to know properties of the item type in the collection, not the properties of the collection type.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:
https://aka.ms/ContentUserFeedback
.
Submit and view feedback for
This product