Gets the names of all the columns of the list view.
Namespace:  Microsoft.VisualStudio.TestTools.UITesting.WinControls
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 list view.
Exceptions
| Exception | Condition | 
|---|---|
| InvalidOperationException | The list is not a list view control. | 
Remarks
Example - Get the names of all the columns of the list view.
string[] columnNames = myListView.GetColumnNames();
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.UITesting.WinControls Namespace