SearchFileOptions 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
搜尋 檔案選項的建構函式
public SearchFileOptions (bool includeMiscellaneousItems, bool includeHiddenItems, bool includeExternalItems, System.Collections.Immutable.ImmutableArray<string>? filters);
new Microsoft.VisualStudio.Text.Operations.SearchFileOptions : bool * bool * bool * Nullable<System.Collections.Immutable.ImmutableArray<string>> -> Microsoft.VisualStudio.Text.Operations.SearchFileOptions
Public Sub New (includeMiscellaneousItems As Boolean, includeHiddenItems As Boolean, includeExternalItems As Boolean, filters As Nullable(Of ImmutableArray(Of String)))
參數
- includeMiscellaneousItems
- Boolean
在索引結果中包含錯誤的項目檔
- includeHiddenItems
- Boolean
在索引結果中包含隱藏的專案
- includeExternalItems
- Boolean
在索引結果中包含外部專案
- filters
- Nullable<ImmutableArray<String>>
索引結果將包含或排除的擴展名篩選清單,例如: .cs :- 表示只符合擴展名.cs應該視為 !。cs :- 表示不應考慮擴展名為 .cs的任何檔案。 請注意,篩選條件可以是擴展名,或以檔案路徑結尾,或包含目錄路徑