System.Data.DataViewManagerListItemTypeDescriptor.ICustomTypeDescriptor C# (CSharp) Méthode

ICustomTypeDescriptor() private méthode

Retrieves an array of properties that the given component instance provides. This may differ from the set of properties the class provides. If the component is sited, the site may add or remove additional properties. The returned array of properties will be filtered by the given set of attributes.
private ICustomTypeDescriptor ( Attribute attributes ) : PropertyDescriptorCollection
attributes Attribute
Résultat System.ComponentModel.PropertyDescriptorCollection
        PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
        {
            if (_propsCollection == null)
            {
                PropertyDescriptor[] props = null;
                DataSet dataSet = _dataViewManager.DataSet;
                if (dataSet != null)
                {
                    int tableCount = dataSet.Tables.Count;
                    props = new PropertyDescriptor[tableCount];
                    for (int i = 0; i < tableCount; i++)
                    {
                        props[i] = new DataTablePropertyDescriptor(dataSet.Tables[i]);
                    }
                }
                _propsCollection = new PropertyDescriptorCollection(props);
            }
            return _propsCollection;
        }

Same methods

DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( ) : AttributeCollection
DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( ) : System.ComponentModel.EventDescriptor
DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( ) : EventDescriptorCollection
DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( Attribute attributes ) : EventDescriptorCollection
DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( ) : PropertyDescriptor
DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( ) : PropertyDescriptorCollection
DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( ) : TypeConverter
DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( PropertyDescriptor pd ) : object
DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( Type editorBaseType ) : object
DataViewManagerListItemTypeDescriptor::ICustomTypeDescriptor ( ) : string