title: List Scheduled Task triggered at startup and logon c#
body: <p>I am using <a href="http://www.codeproject.com/KB/cs/tsnewlib.aspx" rel="nofollow">http://www.codeproject.com/KB/cs/tsnewlib.aspx</a> library to list task which are triggered at log on or startup </p>
  
  <pre><code>ScheduledTasks st = new ScheduledTasks();
  
              foreach (string taskName in st.GetTaskNames())
              {
                  using (Task task = st.OpenTask(taskName))
                  {
  
                          listBox1.Items.Add(taskName);
  
                  }
              }
  </code></pre>
  
  <p>What condition shall I use to list only startup or logon tasks</p>