TeamFoundationVersionControlService.QueryAnnotation 方法

取得符合提供之篩選條件的一組附註。

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

語法

'宣告
Public Function QueryAnnotation ( _
    requestContext As TeamFoundationRequestContext, _
    annotationName As String, _
    annotatedItem As String, _
    version As Integer _
) As List(Of Annotation)
public List<Annotation> QueryAnnotation(
    TeamFoundationRequestContext requestContext,
    string annotationName,
    string annotatedItem,
    int version
)

參數

  • annotationName
    類型:System.String
    傳回標記法的名稱。
  • annotatedItem
    類型:System.String
    篩選要在這個項目設定的附註。
  • version
    類型:System.Int32
    篩選為只顯示與此版本 (需要 annotatedItem)。

傳回值

類型:System.Collections.Generic.List<Annotation>
符合查詢的一組附註。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間