Gets the IModelBasedResource object matching the specified modelResourceName .

Syntax

Namespace: NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI

public bool TryGetResource(string modelResourceName, out IModelBasedResource resource)

Parameters

NameTypeDescription
modelResourceNamestring

the name of the resource in the model to get IModelBasedResource object for.

resourceout IModelBasedResource

When this method returns, contains the IModelBasedResource object matching with specified modelResourceName , if a matching resource is found; otherwise, null

Returns

true if a resource with the specified modelResourceName  is found; otherwise, false.