IWbs.GetTaskByGuid Method

Gets the existing task by its ITask.Guid (not by HexID).
Function GetTaskByGuid( _ 
ByVal guid As String
) As ITask
This language is not supported or no code example is available.
ITask GetTaskByGuid( 
string guid 
)
This language is not supported or no code example is available.

Parameters

guid
string

The GUID (not HexID) of the task/branch.

Return Value

ITask

The task with specified GUID. null reference (Nothing in Visual Basic) if not found.

Remarks
 
This method searches all already created tasks. Only when a task exists and it is not invalid, it is returned.
Version
 
Available since 7.21.879.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition