Class ExecuteFileAction
Represents a plugin prerequisite action that executes a file
public class ExecuteFileAction : PluginPrerequisiteAction
- Inheritance
-
objectCorePropertyChangedExecuteFileAction
- Inherited Members
Constructors
ExecuteFileAction(string, string, string?, bool, bool)
Creates a new instance of ExecuteFileAction
public ExecuteFileAction(string name, string fileName, string? arguments = null, bool waitForExit = true, bool elevate = false)
Parameters
namestringThe name of the action
fileNamestringThe target file to execute
argumentsstringA set of command-line arguments to use when starting the application
waitForExitboolA boolean indicating whether the action should wait for the process to exit
elevateboolA boolean indicating whether the file should run with administrator privileges
Properties
Arguments
Gets a set of command-line arguments to use when starting the application
public string? Arguments { get; }
Property Value
Elevate
Gets a boolean indicating whether the file should run with administrator privileges
public bool Elevate { get; }
Property Value
FileName
Gets the target file to execute
public string FileName { get; }
Property Value
WaitForExit
Gets a boolean indicating whether the action should wait for the process to exit
public bool WaitForExit { get; }
Property Value
Methods
Execute(CancellationToken)
Called when the action must execute
public override Task Execute(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken