Click or drag to resize

RuntimeManagerGetMainProcedure Method

Gets the main procedure. The main procedure is the procedure with the name "main" (case sensitive).

Namespace:  OpenTestSystem.Otx.Runtime.Api
Assembly:  OpenTestSystem.Otx.Runtime.Api (in OpenTestSystem.Otx.Runtime.Api.dll) Version: 5.5.0.0 (6.1.0.31040)
Syntax
public IProcedure GetMainProcedure()

Return Value

Type: IProcedure
The main procedure if existing otherwise null.

Implements

IRuntimeManagerGetMainProcedure
Exceptions
ExceptionCondition
InvalidDataExceptionThe OTX data are invalid.
Examples
Gets main procedure.
C#
static class Program
{
    static void Main()
    { 
        RuntimeManager rt = new RuntimeManager();
        rt.Load("C:\\Sample.ptx");
        IProcedure procedure = rt.GetMainProcedure();
    } 
}
See Also