共用方式為


CopyFrom 簡單型別 (工作項目類型定義結構描述)

更新:2007 年 11 月

定義可指定複製到欄位之資訊來源的值。

<xs:simpleType name="CopyFrom">
        <xs:restriction base="xs:string">
                <xs:enumeration value="value"/>
                <xs:enumeration value="field"/>
                <xs:enumeration value="clock"/>
                <xs:enumeration value="currentuser"/>
        </xs:restriction>
</xs:simpleType>

屬性和項目

下列章節會說明屬性、子項目和父項目。

屬性

子項目

父項目

備註

CopyFrom 簡單型別會定義 CopyRule 複雜型別 (工作項目類型定義結構描述) 中的 from 屬性。

列舉值

CopyFrom 簡單型別為一字串並有下列的值限制:

屬性

說明

value

指出複製的來源為一指定的值。如果使用了 value,則必須要定義 COPY 的 value 屬性。

field

指出複製的來源為一欄位。如果使用了 field,則必須要定義 COPY 的 field 屬性。

clock

指出複製的來源為一系統時鐘。

currentuser

指出複製的來源為目前登入的使用者。

項目資訊

命名空間

https://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef

結構描述名稱

工作項目類型定義

驗證檔

WorkItemTypeDefinition.xsd

可以是空白

不適用

請參閱

概念

可用的欄位規則

指定欄位預設值

其他資源

定義欄位規則