Get a set of annotations that match the supplied filter.
Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
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
)
public:
List<Annotation^>^ QueryAnnotation(
    TeamFoundationRequestContext^ requestContext, 
    String^ annotationName, 
    String^ annotatedItem, 
    int version
)
member QueryAnnotation : 
        requestContext:TeamFoundationRequestContext * 
        annotationName:string * 
        annotatedItem:string * 
        version:int -> List<Annotation> 
public function QueryAnnotation(
    requestContext : TeamFoundationRequestContext, 
    annotationName : String, 
    annotatedItem : String, 
    version : int
) : List<Annotation>
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- annotationName 
 Type: System.String- The name of the annotation to return. 
- annotatedItem 
 Type: System.String- Filter to the annotations set on this item. 
- version 
 Type: System.Int32- Filter to only those associated with this version (annotatedItem required). 
Return Value
Type: System.Collections.Generic.List<Annotation>
The set of annotations that matched the query.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.