Share via


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 命名空间