Note: This API is now obsolete.
Namespace:  Microsoft.VisualStudio.TeamFoundation.WorkItemTracking
Assembly:  Microsoft.VisualStudio.TeamFoundation.WorkItemTracking (in Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll)
Syntax
'Declaration
<ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")> _
Public Function GetQuery ( _
    teamFoundationServer As TeamFoundationServer, _
    queryId As String, _
    lockToken As Object _
) As IQueryDocument
[ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")]
public IQueryDocument GetQuery(
    TeamFoundationServer teamFoundationServer,
    string queryId,
    Object lockToken
)
[ObsoleteAttribute(L"The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")]
public:
IQueryDocument^ GetQuery(
    TeamFoundationServer^ teamFoundationServer, 
    String^ queryId, 
    Object^ lockToken
)
[<ObsoleteAttribute("The TeamFoundationServer class is obsolete and so is this method. Use the overload of this method that takes a TfsTeamProjectCollection object instead.")>]
member GetQuery : 
        teamFoundationServer:TeamFoundationServer * 
        queryId:string * 
        lockToken:Object -> IQueryDocument
public function GetQuery(
    teamFoundationServer : TeamFoundationServer, 
    queryId : String, 
    lockToken : Object
) : IQueryDocument
Parameters
- teamFoundationServer
 Type: Microsoft.TeamFoundation.Client.TeamFoundationServer
- queryId
 Type: System.String
- lockToken
 Type: System.Object
Return Value
Type: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IQueryDocument
Returns IQueryDocument.
.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.
See Also
Reference
Microsoft.VisualStudio.TeamFoundation.WorkItemTracking Namespace