Click or drag to resize
Task Scheduler Managed Class Library

TaskPrincipalGroupId Property

Gets or sets the identifier of the user group that is required to run the tasks that are associated with the principal. Setting this property to something other than a null or empty string, will set the UserId property to NULL and will set the LogonType property to TaskLogonType.Group;

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
[DefaultValueAttribute(null)]
[XmlIgnoreAttribute]
public string GroupId { get; set; }
Request Example View Source

Property Value

String
Exceptions
ExceptionCondition
NotV1SupportedExceptionNot supported under Task Scheduler 1.0.
See Also