Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: System.Drawing.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.