TryVerifyAsset Method

Class

Silk4NET.

Action

Executes a verification asset and returns whether the verification passed. Throws an ObjectNotFoundException if the UI object to verify cannot be found.

Syntax

C#
result = TryVerifyAsset(verificationAsset)
VB
result = TryVerifyAsset(verificationAsset)
Variable Description
result Returns whether the verification passed. True if the verification passed, false if not. Boolean.
verificationAsset The name of the .verification file. The file extension can be omitted. String.

Example

To execute a verification of the image asset myImageAsset, type the following code:

C#
bool result = Silk4NET.TryVerifyAsset("myImageAsset");
VB
Dim result As Boolean = Silk4NET.TryVerifyAsset("myImageAsset")