TryGetResource(string, out IModelBasedResource)
- Updated2026-06-25
- 1 minute(s) read
Gets the IModelBasedResource object matching the specified modelResourceName .
Syntax
Namespace: NationalInstruments.TestStand.SemiconductorModule.CodeModuleAPI
public bool TryGetResource(string modelResourceName, out IModelBasedResource resource)
Parameters
| Name | Type | Description |
|---|---|---|
| modelResourceName | string | the name of the resource in the model to get IModelBasedResource object for. |
| resource | out 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.