Share via


WpfTable.GetColumnNames Method

Gets the names of all the columns of the table.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.WpfControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Function GetColumnNames As String()
public string[] GetColumnNames()
public:
array<String^>^ GetColumnNames()
member GetColumnNames : unit -> string[] 
public function GetColumnNames() : String[]

Return Value

Type: array<String[]
The names of all columns of the table.

Remarks

Example - Get the names of all the columns of the table.

string[] columnNames = myTable.GetColumnNames();

.NET Framework Security

See Also

Reference

WpfTable Class

Microsoft.VisualStudio.TestTools.UITesting.WpfControls Namespace