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
- 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.