principalType 複雜類型

定義 Principal 元素的屬性、子專案和排序資訊。

<xs:complexType name="principalType">
    <xs:all>
        <xs:element name="UserId"
            type="nonEmptyString"
            minOccurs="0"
         />
        <xs:element name="LogonType"
            type="logonType"
            minOccurs="0"
            maxOccurs="1"
         />
        <xs:element name="GroupId"
            type="nonEmptyString"
            minOccurs="0"
         />
        <xs:element name="DisplayName"
            type="string"
            minOccurs="0"
         />
        <xs:element name="RunLevel"
            type="runLevelType"
            minOccurs="0"
         />
        <xs:element name="ProcessTokenSidType"
            type="processTokenSidType"
            minOccurs="0"
            maxOccurs="1"
         />
        <xs:element name="RequiredPrivileges"
            type="requiredPrivilegesType"
            minOccurs="0"
         />
    </xs:all>
    <xs:attribute name="id"
        type="ID"
        use="optional"
     />
</xs:complexType>

子元素

元素 類型 描述
DisplayName string 指定工作排程器使用者介面中顯示的主體名稱, (UI) 。
GroupId nonEmptyString 指定執行與主體相關聯之工作所需的使用者群組識別碼。
LogonType logonType 指定執行與主體相關聯之工作所需的安全性登入方法。
ProcessTokenSidType processTokenSidType 指定工作可以使用的進程安全性識別碼類型 (SID) 。
RequiredPrivileges requiredPrivilegesType 指定執行工作所需的許可權。
RunLevel runLevelType 指定要執行工作的許可權等級。
UserId nonEmptyString 指定執行與主體相關聯之工作所需的使用者識別碼。

屬性

名称 類型 描述
id 識別碼 指定主體的識別碼。

規格需求

需求
最低支援的用戶端
Windows 7 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 R2 [僅限桌面應用程式]

另請參閱

工作排程器架構複雜類型

工作排程器