共用方式為


VersionControlLabel 類別

表示標籤。 呼叫「VersionControlLabel」,以避免衝突 System.Windows.Forms.Label。

繼承階層架構

System.Object
  Microsoft.TeamFoundation.VersionControl.Server.VersionControlLabel

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
<RequiredClientServiceAttribute("VersionControlServer")> _
<CallOnDeserializationAttribute("AfterDeserialize")> _
Public Class VersionControlLabel _
    Implements ICacheable
[RequiredClientServiceAttribute("VersionControlServer")]
[CallOnDeserializationAttribute("AfterDeserialize")]
public class VersionControlLabel : ICacheable

VersionControlLabel 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 VersionControlLabel

回頁首

屬性

  名稱 描述
公用屬性 Comment 不論標籤註解或空的。
公用屬性 Items 在標籤包含項目清單和它們的版本。只能在 includeItems = true QueryLabels 的結果。
公用屬性 LabelId 標籤的 ID,如代表資料庫中。標籤 ID 用來產生成品名稱。
公用屬性 LastModifiedDate 目前標籤修改時間戳記。
公用屬性 Name 標籤名稱。名稱 + ServerItem 必須是唯一的。
公用屬性 OwnerDisplayName 擁有這個標籤使用者的顯示名稱。
公用屬性 OwnerName 擁有這個標籤使用者的識別名稱。
公用屬性 OwnerUniqueName 擁有這個標籤使用者的唯一識別名稱。
公用屬性 Scope 伺服器表示標籤的範圍的項目路徑。名稱 + 範圍內必須是唯一的。

回頁首

方法

  名稱 描述
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetCachedSize
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.TeamFoundation.VersionControl.Server 命名空間