Please enable JavaScript to view this site.

Thread Validator Help

Navigation: » No topics above this level «

C# API

Scroll Prev Top Next More

The C# API is a wrapper around the native API.

 

For all of these APIs see the native API for more details.

 

 

Adding the API to your application

 

The C# API is provided as a source code svlTVAPI.cs file that you add to your application. The source file is in the API directory in the Thread Validator install directory.

 

The C# API does not add any dependencies to your application - if Thread Validator is present the API functions work, if Thread Validator is not present the API functions do nothing.

 

 

The C# API

 

The C# API is implemented by the ThreadValidator class in the SoftwareVerify namespace.

 

 

collectOn()

 

Turn data collection on.

 
public static void collectOn();
 

 

collectOff()

 

Turn data collection off.

 
public static void collectOff();
 

 

setCollect()

 

Turn data collection on or off.

 
public static void setCollect(bool enable);
 

 

getCollect()

 

Determine if data collection is turned on or off.

 
public static bool getCollect();