CompositeDirectoryContents 類別

定義

表示 GetDirectoryContents(String) 針對 IFileProvider 和路徑清單的呼叫組合結果。Represents the result of a call composition of GetDirectoryContents(String) for a list of IFileProvider and a path.

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) 呼叫組合的結果。Creates a new instance of CompositeDirectoryContents to represents the result of a call composition of GetDirectoryContents(String).

屬性

Exists

如果有任何指定的提供者,則為 true。True if any given providers exists.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetEnumerator()

為所有指定提供者中的所有檔案建立列舉程式。Creates an enumerator for all files in all providers given. 確保集合中的每個項目都相異。Ensures each item in the collection is distinct.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

IEnumerable.GetEnumerator()

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through a collection.

擴充方法

CopyToDataTable<T>(IEnumerable<T>)

根據輸入 DataTable 物件 (其中泛型參數 TDataRow) 傳回包含 IEnumerable<T> 物件複本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

適用於