Compartir a través de


HtmlTable.GetColumnNames Method

Gets the names of all the columns of the table.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.HtmlControls
Assemblies:   Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.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

HtmlTable Class

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls Namespace