Class ProcessActivationRequirement
Evaluates to true or false by checking if the specified process is running
public class ProcessActivationRequirement : IModuleActivationRequirement
- Inheritance
-
objectProcessActivationRequirement
- Implements
Constructors
ProcessActivationRequirement(string?, string?)
Creates a new instance of the ProcessActivationRequirement class
public ProcessActivationRequirement(string? processName, string? location = null)
Parameters
processNamestringThe name of the process that must run
locationstringThe location of where the process must be running from (optional)
Properties
Location
The location of where the process must be running from
public string? Location { get; set; }
Property Value
ProcessName
The name of the process that must run
public string? ProcessName { get; set; }
Property Value
Methods
Evaluate()
Called to determine whether the activation requirement is met
public bool Evaluate()
Returns
GetUserFriendlyDescription()
Returns a user-friendly description of the activation requirement, should include parameters if applicable
public string GetUserFriendlyDescription()
Returns
- string
A user-friendly description of the activation requirement