Share via


UITestControl.CaptureImage Method

Captures the image of the UITestControl. The UITestControl must be present on the screen.

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

Syntax

'Declaration
Public Function CaptureImage As Image
public Image CaptureImage()
public:
Image^ CaptureImage()
member CaptureImage : unit -> Image
public function CaptureImage() : Image

Return Value

Type: Image
The image of this control.

.NET Framework Security

See Also

Reference

UITestControl Class

Microsoft.VisualStudio.TestTools.UITesting Namespace