CompositeDirectoryContents 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示 GetDirectoryContents(String) 針對 IFileProvider 和路徑清單的呼叫組合結果。
public ref class CompositeDirectoryContents : Microsoft::Extensions::FileProviders::IDirectoryContents, System::Collections::Generic::IEnumerable<Microsoft::Extensions::FileProviders::IFileInfo ^>
public class CompositeDirectoryContents : Microsoft.Extensions.FileProviders.IDirectoryContents, System.Collections.Generic.IEnumerable<Microsoft.Extensions.FileProviders.IFileInfo>
type CompositeDirectoryContents = class
interface IDirectoryContents
interface seq<IFileInfo>
interface IEnumerable
Public Class CompositeDirectoryContents
Implements IDirectoryContents, IEnumerable(Of IFileInfo)
- 繼承
-
CompositeDirectoryContents
- 實作
建構函式
CompositeDirectoryContents(IList<IFileProvider>, String) |
建立新的 CompositeDirectoryContents 執行個體,以表示 GetDirectoryContents(String) 呼叫組合的結果。 |
屬性
Exists |
如果有任何指定的提供者,則為 true。 |
方法
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
GetEnumerator() |
為所有指定提供者中的所有檔案建立列舉程式。 確保集合中的每個項目都相異。 |
GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |
明確介面實作
IEnumerable.GetEnumerator() |
傳回逐一查看集合的列舉值。 |
擴充方法
CopyToDataTable<T>(IEnumerable<T>) |
根據輸入 DataTable 物件 (其中泛型參數 |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
根據輸入 DataRow 物件 (其中泛型參數 |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
根據輸入 DataRow 物件 (其中泛型參數 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應