TaskPrincipalValidateAccountForSidType Method

Validates the supplied account against the supplied TaskProcessTokenSidType.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
public static bool ValidateAccountForSidType(
	string acct,
	TaskProcessTokenSidType sidType
)

Parameters

acct  String
The user or group account name.
sidType  TaskProcessTokenSidType
The SID type for the process.

Return Value

Boolean
true if supplied account can be used for the supplied SID type.

See Also