Поделиться через


DocumentService.CreateQuery Method (TeamFoundationServer, String, Boolean, String, Object)

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 CreateQuery ( _
    teamFoundationServer As TeamFoundationServer, _
    teamProjectName As String, _
    publicQuery As Boolean, _
    queryText 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 CreateQuery(
    TeamFoundationServer teamFoundationServer,
    string teamProjectName,
    bool publicQuery,
    string queryText,
    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^ CreateQuery(
    TeamFoundationServer^ teamFoundationServer, 
    String^ teamProjectName, 
    bool publicQuery, 
    String^ queryText, 
    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 CreateQuery : 
        teamFoundationServer:TeamFoundationServer * 
        teamProjectName:string * 
        publicQuery:bool * 
        queryText:string * 
        lockToken:Object -> IQueryDocument
public function CreateQuery(
    teamFoundationServer : TeamFoundationServer, 
    teamProjectName : String, 
    publicQuery : boolean, 
    queryText : String, 
    lockToken : Object
) : IQueryDocument

Parameters

Return Value

Type: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IQueryDocument
Returns IQueryDocument.

.NET Framework Security

See Also

Reference

DocumentService Class

CreateQuery Overload

Microsoft.VisualStudio.TeamFoundation.WorkItemTracking Namespace