TryLoad(string name, object loadContext) Method

Tries to load information about a script call for a script of the specified name, in the specified context

Syntax

public abstract CallScriptInfo TryLoad(string name, object loadContext)

Parameters

name
Type: string

The name of the script.

loadContext
Type: object

The context to load the script.

Returns

Information about the script call if possible; otherwise null (Nothing in Visual Basic).

Remarks

In BuildMaster, the loadContext is IBuildMasterContext, and can be passed into methods like SDK.GetRaftItems(Inedo.Extensibility.RaftRepositories.RaftItemType type, object context) and SDK.GetRaftItem(Inedo.Extensibility.RaftRepositories.RaftItemType type, string itemId, object context) as needed to resolve application-level rafts