public override string ToString() { if (_v1Trigger != null) { return((string)_v1Trigger.GetTriggerString()); } return(V2GetTriggerString() + V2BaseTriggerString()); }
/// <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()); } }