LocalItemExclusionEvaluator.IsExcluded 方法 (String, Boolean, String%, String%)

根據 LocalItemExclusionEvaluator 檢查提供的本機項目看是否應該從排除加入至版本控制。 如果項目被排除, appliedExclusion 和 ignoreFilePath 參數將設定提供項目之原因的其他資訊排除。

命名空間:  Microsoft.TeamFoundation.VersionControl.Client
組件:  Microsoft.TeamFoundation.VersionControl.Client (在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

語法

'宣告
Public Function IsExcluded ( _
    localItem As String, _
    isFolder As Boolean, _
    <OutAttribute> ByRef appliedExclusion As String, _
    <OutAttribute> ByRef ignoreFilePath As String _
) As Boolean
public bool IsExcluded(
    string localItem,
    bool isFolder,
    out string appliedExclusion,
    out string ignoreFilePath
)

參數

  • isFolder
    類型:System.Boolean
    如果檢查本機項目是資料夾,則為 true;否則為 false。
  • appliedExclusion
    類型:System.String%
    [],如果項目被排除,套用的排除
  • ignoreFilePath
    類型:System.String%
    [],如果項目被排除,忽略檔案名稱中包含應用程式的排除的磁碟上。如果應用程式的排除來自 Team 專案集合的全域排除清單,則該值為空字串。

傳回值

類型:System.Boolean
如果項目被排除,則為 true;否則為 false。

.NET Framework 安全性

請參閱

參考

LocalItemExclusionEvaluator 類別

IsExcluded 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間