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
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
要求內容。
- annotationName
型別:System.String
要傳回之附註的名稱。
- annotatedItem
型別:System.String
在附註的篩選條件會在這個項目設定為。
- version
型別:System.Int32
篩選只與該版本 (需要 annotatedItem)。
傳回值
型別:System.Collections.Generic.List<Annotation>
符合查詢的組附註。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。