Tries to start a subprocess.
Namespace: Spotfire.Dxp.Framework.ApplicationModel
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax
C#
public Subprocess StartSubprocess( Type typeToCreate, Tuple<string, bool> assemblyResolvePath, IEnumerable<string> args, bool redirectOutput, out string errorText )
Parameters
- typeToCreate
- Type: SystemType
The type to create an instance of in the subprocess. - assemblyResolvePath
- Type: SystemTupleString, Boolean
A tuple containing he path to the folder where the assemblies are located that should be used in the sub-process, and a bool indicting if sub-folders should be searched or not. - args
- Type: System.Collections.GenericIEnumerableString
The arguments to pass to the instance. - redirectOutput
- Type: SystemBoolean
if set to true [redirect output], this only works when the subprocess uses the Process class. - errorText
- Type: SystemString
If no process can be started an none empty string with an error message will be returned.
Return Value
Type: SubprocessA Process object; if the subprocess did start the Process object is connected to the running process; otherwise null is returned.
Version Information
Supported in: 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also