![]() | TaskPrincipal Class |
Namespace: Microsoft.Win32.TaskScheduler
public sealed class TaskPrincipal : IDisposable, IXmlSerializable, INotifyPropertyChanged
The TaskPrincipal type exposes the following members.
Name | Description | |
---|---|---|
![]() | Account |
Gets the account associated with this principal. This value is pulled from the TaskDefinition's XMLText property if set.
|
![]() | DisplayName | Gets or sets the name of the principal that is displayed in the Task Scheduler UI. |
![]() | GroupId | |
![]() | Id | Gets or sets the identifier of the principal. |
![]() | LogonType | Gets or sets the security logon method that is required to run the tasks that are associated with the principal. |
![]() | ProcessTokenSidType | Gets or sets the task process security identifier (SID) type. |
![]() | RequiredPrivileges |
Gets the security credentials for a principal. These security credentials define the security context for the tasks that are
associated with the principal.
|
![]() | RunLevel |
Gets or sets the identifier that is used to specify the privilege level that is required to run the tasks that are associated
with the principal.
|
![]() | UserId |
Gets or sets the user identifier 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 GroupId property to NULL;
|
Name | Description | |
---|---|---|
![]() | Dispose | Releases all resources used by this class. |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | RequiresPassword | Gets a value indicating whether current Principal settings require a password to be provided. |
![]() | ToString | Returns a String that represents this instance. (Overrides ObjectToString.) |
![]() ![]() | ValidateAccountForSidType | Validates the supplied account against the supplied TaskProcessTokenSidType. |
Name | Description | |
---|---|---|
![]() | PropertyChanged | Occurs when a property value changes. |