Hello
Please Help me..
I hope to check [ Run whether user is logged on or not ] from TaskService.
Please Help me..
I hope to check [ Run whether user is logged on or not ] from TaskService.
C#:
using (TaskService taskService = new TaskService())
{
TaskDefinition taskDef = taskService.NewTask();
taskDef.?????? ;// Run whether user is logged on or not
//Setting it as Principal.UserId = "SYSTEM" does not work
taskDefinition.Principal.UserId = "SYSTEM"; //Setting it as SYSTEM does not work
}
Last edited: