Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Gets the content of the control.
Namespace: Microsoft.VisualStudio.TestTools.UITesting.WpfControls
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.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<String[]
The content of the control.
Remarks
Example - Verify all the values in the combo box.
string[] expectedContent = new string[] { "IE", "FireFox", "Safari" }; string[] actualContent = browserCombo.GetContent(); CollectionAssert.AreEqual(expectedContent, actualContent);
.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.WpfControls Namespace