ITypedList.GetListName(PropertyDescriptor[]) Yöntem

Tanım

Listenin adını döndürür.

public:
 System::String ^ GetListName(cli::array <System::ComponentModel::PropertyDescriptor ^> ^ listAccessors);
public string GetListName (System.ComponentModel.PropertyDescriptor[] listAccessors);
public string GetListName (System.ComponentModel.PropertyDescriptor[]? listAccessors);
abstract member GetListName : System.ComponentModel.PropertyDescriptor[] -> string
Public Function GetListName (listAccessors As PropertyDescriptor()) As String

Parametreler

listAccessors
PropertyDescriptor[]

Liste adının döndürüldiği bir nesne dizisi PropertyDescriptor . Bu olabilir null.

Döndürülenler

Listenin adı.

Örnekler

Aşağıdaki kod örneği, yönteminin GetListName nasıl uygulanduğunu gösterir. Tam kod listesi için bkz . Nasıl yapılır: ITypedList Arabirimini Uygulama.

// This method is only used in the design-time framework 
// and by the obsolete DataGrid control.
public string GetListName(PropertyDescriptor[] listAccessors)
{   
    return typeof(T).Name;
}
' This method is only used in the design-time framework 
' and by the obsolete DataGrid control.
Public Function GetListName( _
ByVal listAccessors() As PropertyDescriptor) As String _
Implements System.ComponentModel.ITypedList.GetListName

    Return GetType(Tkey).Name

End Function

Açıklamalar

Bu yöntem yalnızca tasarım zamanı çerçevesinde ve eski DataGrid denetim tarafından kullanılır.

Şunlara uygulanır

Ayrıca bkz.