DataColumn.ToString 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取列的 Expression(如果存在的话)。
public:
 override System::String ^ ToString();public override string ToString ();override this.ToString : unit -> stringPublic Overrides Function ToString () As String返回
如果设置了属性;则为 Expression 的值;否则为 ColumnName 的属性。
示例
以下示例使用 ToString 属性返回 对象集合 DataColumn 中每个成员的默认字符串。
private void PrintColumns(DataTable table)
{
    // Print the default string of each column in a collection.
    foreach(DataColumn column in table.Columns)
    {
        Console.WriteLine(column.ToString());
    }
}
Private Sub PrintColumns(table As DataTable)
    ' Print the default string of each column in a collection.
    Dim column As DataColumn
    For Each column In table.Columns
       Console.WriteLine(column.ToString())
    Next
End Sub