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
)
參數
- localItem
型別:System.String
要檢查的本機項目。
- isFolder
型別:System.Boolean
如果檢查本機項目是資料夾,則為 true;否則為 false。
- appliedExclusion
型別:System.String%
[out] 如果項目被排除,套用的排除
- ignoreFilePath
型別:System.String%
[out] 如果項目被排除,忽略檔案名稱中包含應用程式的排除的磁碟上。如果應用程式的排除來自 Team 專案集合的全域排除清單,則該值為空字串。
傳回值
型別:System.Boolean
如果項目被排除,則為 true;否則為 false。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。