ITaskDefinition::Principal property

Gets or sets the principal for the task that provides the security credentials for the task.

This property is read/write.

Syntax


HRESULT put_Principal(
  [in]   IPrincipal *pPrincipal
);

HRESULT get_Principal(
  [out]  IPrincipal **ppPrincipal
);

Property value

The principal for the task that provides the security credentials for the task.

Error codes

NameMeaning
S_OK

The property value was successfully set or retrieved.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

ITaskDefinition
IPrincipal

 

 

Community Additions

ADD
Show:
© 2014 Microsoft