NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataTable.ToString

Returns the TableName and DisplayExpression, if there is one as a concatenated string.

[Visual Basic]
Overrides Public Function ToString() As String
[C#]
public override string ToString();
[C++]
public: override String* ToString();
[JScript]
public override function ToString() : String;

Return Value

A string consisting of the TableName and the DisplayExpression values.

Remarks

Returns the TableName and DisplayExpression for the DataTable.

Example [Visual Basic]

The following example returns the TableName and DisplayExpression using the ToString method.

[Visual Basic]

Private Sub PrintToString(ds As DataSet)
   Dim t As DataTable
   For Each t In ds.Tables
      Debug.Print t.ToString
   Next
End Sub

See Also

DataTable Class | DataTable Members | System.Data Namespace | DisplayExpression | TableName