예제 #1
0
 public override string ToString()
 {
     if (_v1Trigger != null)
     {
         return((string)_v1Trigger.GetTriggerString());
     }
     return(V2GetTriggerString() + V2BaseTriggerString());
 }
예제 #2
0
파일: Trigger.cs 프로젝트: clamwin/clamwind
 /// <summary>
 /// Gets a string, supplied by the WindowsTask Scheduler, of a bound Trigger.
 /// For an unbound trigger, returns "Unbound Trigger".
 /// </summary>
 /// <returns>String representation of the trigger.</returns>
 public override string ToString()
 {
     if (iTaskTrigger != null)
     {
         IntPtr lpwstr;
         iTaskTrigger.GetTriggerString(out lpwstr);
         return(CoTaskMem.LPWStrToString(lpwstr));
     }
     else
     {
         return("Unbound " + this.GetType().ToString());
     }
 }