次の方法で共有


VersionControlServer.QueryLabels メソッド (String, String, String, Boolean, String, VersionSpec, Boolean)

クエリ配列のVersionControlLabelオブジェクトが、リポジトリ内のアイテムに適用します。

名前空間:  Microsoft.TeamFoundation.VersionControl.Client
アセンブリ:  Microsoft.TeamFoundation.VersionControl.Client (Microsoft.TeamFoundation.VersionControl.Client.dll 内)

構文

'宣言
Public Function QueryLabels ( _
    labelName As String, _
    labelScope As String, _
    owner As String, _
    includeItems As Boolean, _
    filterItem As String, _
    versionFilterItem As VersionSpec, _
    includeDownloadInfo As Boolean _
) As VersionControlLabel()
public VersionControlLabel[] QueryLabels(
    string labelName,
    string labelScope,
    string owner,
    bool includeItems,
    string filterItem,
    VersionSpec versionFilterItem,
    bool includeDownloadInfo
)

パラメーター

  • labelName
    型 : System.String
    照会しているラベルの名前を指定します。
  • labelScope
    型 : System.String
    ラベルが定義されているスコープを表すリポジトリのパスです。
  • owner
    型 : System.String
    ラベルを作成したユーザー。すべての所有者が一致する場合は null を指定します。
  • includeItems
    型 : System.Boolean
    True を設定すると、ラベル内の項目が含まれます。False に設定すると、含まれていません。
  • filterItem
    型 : System.String
    非 null の場合は、サーバー (ローカル パス) は、この項目を含むラベルのみを返します。
  • includeDownloadInfo
    型 : System.Boolean
    True を取得情報を必要なファイルをダウンロードします。必要ない場合は、帯域幅を節約する場合は false を指定します。

戻り値

型 : array<Microsoft.TeamFoundation.VersionControl.Client.VersionControlLabel[]
配列のVersionControlLabelオブジェクトが、リポジトリ内のアイテムに適用します。

解説

のみincludeDownloadInfo 、返されるオブジェクトを使用してファイルをダウンロードする場合は、true にします。呼び出しは速くおよびより少ない帯域幅を必要とするときincludeDownloadInfo false (既定値を指定しないオーバー ロード) します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

VersionControlServer クラス

QueryLabels オーバーロード

Microsoft.TeamFoundation.VersionControl.Client 名前空間