Partager via


DocumentService.CreateQuery Method (TfsTeamProjectCollection, String, QueryFolder, String, Object)

Namespace:  Microsoft.VisualStudio.TeamFoundation.WorkItemTracking
Assembly:  Microsoft.VisualStudio.TeamFoundation.WorkItemTracking (in Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll)

Syntax

'Declaration
Public Function CreateQuery ( _
    teamProjectCollection As TfsTeamProjectCollection, _
    teamProjectName As String, _
    parent As QueryFolder, _
    queryText As String, _
    lockToken As Object _
) As IQueryDocument
public IQueryDocument CreateQuery(
    TfsTeamProjectCollection teamProjectCollection,
    string teamProjectName,
    QueryFolder parent,
    string queryText,
    Object lockToken
)
public:
IQueryDocument^ CreateQuery(
    TfsTeamProjectCollection^ teamProjectCollection, 
    String^ teamProjectName, 
    QueryFolder^ parent, 
    String^ queryText, 
    Object^ lockToken
)
member CreateQuery : 
        teamProjectCollection:TfsTeamProjectCollection * 
        teamProjectName:string * 
        parent:QueryFolder * 
        queryText:string * 
        lockToken:Object -> IQueryDocument
public function CreateQuery(
    teamProjectCollection : TfsTeamProjectCollection, 
    teamProjectName : String, 
    parent : QueryFolder, 
    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