DocumentService.CreateQuery 方法 (TeamFoundationServer, String, Boolean, String, Object)
注意:這個應用程式開發介面現在已經過時。
命名空間: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking
組件: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking (在 Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll 中)
語法
'宣告
<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
)
參數
- teamFoundationServer
類型:Microsoft.TeamFoundation.Client.TeamFoundationServer
- teamProjectName
類型:System.String
- publicQuery
類型:System.Boolean
- queryText
類型:System.String
- lockToken
類型:System.Object
傳回值
類型:Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IQueryDocument
傳回 IQueryDocument。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。