|  | Logon | 
Gets or sets The identifier of the user. For example, "MyDomain\MyName" or for a local account, "Administrator".
This property can be in one of the following formats:
• User name or SID: The task is started when the user logs on to the computer.
• NULL: The task is started when any user logs on to the computer.
 Syntax
Syntax[DefaultValueAttribute(null)] [XmlIgnoreAttribute] public string UserId { get; set; }
 Exceptions
Exceptions| Exception | Condition | 
|---|---|
| NotV1SupportedException | Not supported under Task Scheduler 1.0. | 
 Remarks
Remarks See Also
See Also