 | TaskPrincipalValidateAccountForSidType Method |
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic static bool ValidateAccountForSidType(
string acct,
TaskProcessTokenSidType sidType
)
Public Shared Function ValidateAccountForSidType (
acct As String,
sidType As TaskProcessTokenSidType
) As Boolean
public:
static bool ValidateAccountForSidType(
String^ acct,
TaskProcessTokenSidType sidType
)
Request Example
View SourceParameters
- acct
- Type: SystemString
The user or group account name. - sidType
- Type: Microsoft.Win32.TaskSchedulerTaskProcessTokenSidType
The SID type for the process.
Return Value
Type:
Booleantrue if supplied account can be used for the supplied SID type.
See Also