ITypedList.GetListName(PropertyDescriptor[]) メソッド

定義

リストの名前を返します。

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

パラメーター

listAccessors
PropertyDescriptor[]

リスト名を返す対象の PropertyDescriptor オブジェクトの配列。 これは null でもかまいません。

戻り値

リストの名前。

次のコード例は、 メソッドを実装する方法を GetListName 示しています。 完全なコード一覧については、「 方法: ITypedList インターフェイスを実装する」を参照してください。

// 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

注釈

このメソッドは、デザイン時フレームワークと古い DataGrid コントロールでのみ使用されます。

適用対象

こちらもご覧ください