Share via


XamlList.GetContent Method

Gets the content of the control.

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

Syntax

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

Return Value

Type: array<System.String[]

Remarks

Example - Verify all the values in the list. string[] expectedContent = new string[] { "IE", "FireFox", "Safari" }; string[] actualContent = browserList.GetContent(); CollectionAssert.AreEqual(expectedContent, actualContent);

.NET Framework Security

See Also

Reference

XamlList Class

Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls Namespace